From 0ed522481fe61c6f1911f11b26a75d450ee673f8 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Fri, 17 Sep 2010 16:05:05 -0500 Subject: [PATCH] Read and write operations are async. --- framework/src/com/phonegap/FileUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) mode change 100644 => 100755 framework/src/com/phonegap/FileUtils.java diff --git a/framework/src/com/phonegap/FileUtils.java b/framework/src/com/phonegap/FileUtils.java old mode 100644 new mode 100755 index 1e538080..598c23e9 --- a/framework/src/com/phonegap/FileUtils.java +++ b/framework/src/com/phonegap/FileUtils.java @@ -149,10 +149,13 @@ public class FileUtils implements Plugin { * @return T=returns value */ public boolean isSynch(String action) { - if (action.equals("read")) { + if (action.equals("readAsText")) { return false; } - else if (action.equals("write")) { + else if (action.equals("readAsDataURL")) { + return false; + } + else if (action.equals("writeAsText")) { return false; } return true;