You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/03/31 22:23:29 UTC

git commit: Always use Android's recommended temp file location for temporary file system

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/dev 1eab4dbc6 -> e63190126


Always use Android's recommended temp file location for temporary file system


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/e6319012
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/e6319012
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/e6319012

Branch: refs/heads/dev
Commit: e63190126d5fc49eee09147d30b85f3cadb400c9
Parents: 1eab4db
Author: Ian Clelland <ic...@chromium.org>
Authored: Mon Mar 31 16:23:08 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Mon Mar 31 16:23:08 2014 -0400

----------------------------------------------------------------------
 src/android/FileUtils.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/e6319012/src/android/FileUtils.java
----------------------------------------------------------------------
diff --git a/src/android/FileUtils.java b/src/android/FileUtils.java
index 4da8a77..44ea7c0 100644
--- a/src/android/FileUtils.java
+++ b/src/android/FileUtils.java
@@ -106,9 +106,9 @@ public class FileUtils extends CordovaPlugin {
     	if (location == null) {
     		location = "compatibility";
     	}
+    	tempRoot = activity.getCacheDir().getAbsolutePath();
     	if ("internal".equalsIgnoreCase(location)) {
     		persistentRoot = activity.getFilesDir().getAbsolutePath() + "/files/";
-    		tempRoot = activity.getCacheDir().getAbsolutePath();
     		this.configured = true;
     	} else if ("compatibility".equalsIgnoreCase(location)) {
     		/*
@@ -124,7 +124,6 @@ public class FileUtils extends CordovaPlugin {
     					"/Android/data/" + packageName + "/cache/";
     		} else {
     			persistentRoot = "/data/data/" + packageName;
-    			tempRoot = "/data/data/" + packageName + "/cache/";
     		}
     		this.configured = true;
     	}