incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [12/21] android commit: Return string for root location in requestFileSystem
Date Mon, 20 Feb 2012 21:01:00 GMT
Return string for root location in requestFileSystem


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/a43e80ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/a43e80ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/a43e80ae

Branch: refs/heads/master
Commit: a43e80ae1d70ae1e24855592773935dac42af81f
Parents: 5253b5f
Author: Fil Maj <filip.maj@nitobi.com>
Authored: Wed Feb 15 17:30:32 2012 -0800
Committer: Joe Bowser <bowserj@apache.org>
Committed: Mon Feb 20 11:04:36 2012 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/FileUtils.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/a43e80ae/framework/src/org/apache/cordova/FileUtils.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java
index 2bf9620..5c217c2 100755
--- a/framework/src/org/apache/cordova/FileUtils.java
+++ b/framework/src/org/apache/cordova/FileUtils.java
@@ -782,14 +782,14 @@ public class FileUtils extends Plugin {
             File fp;
             fs.put("name", "temporary");
             if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
{
-                fs.put("root", getEntry(Environment.getExternalStorageDirectory().getAbsolutePath()
+
-                        "/Android/data/" + ctx.getPackageName() + "/cache/"));
+                fs.put("root", Environment.getExternalStorageDirectory().getAbsolutePath()
+
+                        "/Android/data/" + ctx.getPackageName() + "/cache/");
 
                 // Create the cache dir if it doesn't exist.
                 fp = new File(Environment.getExternalStorageDirectory().getAbsolutePath()
+
                     "/Android/data/" + ctx.getPackageName() + "/cache/");
             } else {
-                fs.put("root", getEntry("/data/data/" + ctx.getPackageName() + "/cache/"));
+                fs.put("root", "/data/data/" + ctx.getPackageName() + "/cache/");
                 // Create the cache dir if it doesn't exist.
                 fp = new File("/data/data/" + ctx.getPackageName() + "/cache/");
             }
@@ -798,9 +798,9 @@ public class FileUtils extends Plugin {
         else if (type == PERSISTENT) {
             fs.put("name", "persistent");
             if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
{
-                fs.put("root", getEntry(Environment.getExternalStorageDirectory()));
+                fs.put("root", Environment.getExternalStorageDirectory());
             } else {
-                fs.put("root", getEntry("/data/data/" + ctx.getPackageName()));
+                fs.put("root", "/data/data/" + ctx.getPackageName());
             }
         }
         else {


Mime
View raw message