mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Read and write operations are async.
This commit is contained in:
parent
2d4a321cc1
commit
0ed522481f
7
framework/src/com/phonegap/FileUtils.java
Normal file → Executable file
7
framework/src/com/phonegap/FileUtils.java
Normal file → Executable file
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user