mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +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
|
* @return T=returns value
|
||||||
*/
|
*/
|
||||||
public boolean isSynch(String action) {
|
public boolean isSynch(String action) {
|
||||||
if (action.equals("read")) {
|
if (action.equals("readAsText")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (action.equals("write")) {
|
else if (action.equals("readAsDataURL")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (action.equals("writeAsText")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user