cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [3/5] git commit: Whitespace fixes
Date Wed, 19 Feb 2014 17:36:26 GMT
Whitespace fixes


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugins/commit/0947a66a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugins/tree/0947a66a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugins/diff/0947a66a

Branch: refs/heads/file-extras-rewrite
Commit: 0947a66a56e9a8831e5623a82da855bf57a75382
Parents: 2ca87bc
Author: Ian Clelland <iclelland@chromium.org>
Authored: Mon Feb 17 22:11:09 2014 -0500
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Wed Feb 19 12:34:50 2014 -0500

----------------------------------------------------------------------
 file-system-roots/android/FileSystemRoots.java | 38 ++++++++++-----------
 1 file changed, 19 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/0947a66a/file-system-roots/android/FileSystemRoots.java
----------------------------------------------------------------------
diff --git a/file-system-roots/android/FileSystemRoots.java b/file-system-roots/android/FileSystemRoots.java
index 00ccba1..651e3e8 100644
--- a/file-system-roots/android/FileSystemRoots.java
+++ b/file-system-roots/android/FileSystemRoots.java
@@ -44,15 +44,15 @@ public class FileSystemRoots extends CordovaPlugin {
     private static final int PURPOSE_TEMP = 3;
     private static final String TAG = "file-system-roots";
 
-	private HashSet<String> installedFilesystems;
-	private HashMap<String, String> availableFilesystems;
+    private HashSet<String> installedFilesystems;
+    private HashMap<String, String> availableFilesystems;
 
     @Override
     public void initialize(CordovaInterface cordova, CordovaWebView webView) {
         super.initialize(cordova, webView);
 
-    	Activity activity = cordova.getActivity();
-    	Context context = activity.getApplicationContext();
+        Activity activity = cordova.getActivity();
+        Context context = activity.getApplicationContext();
 
         availableFilesystems = new HashMap<String,String>();
         availableFilesystems.put("files", context.getFilesDir().getAbsolutePath());
@@ -67,28 +67,28 @@ public class FileSystemRoots extends CordovaPlugin {
 
         String filesystemsStr = activity.getIntent().getStringExtra("androidextrafilesystems");
         if (filesystemsStr == null) {
-        	filesystemsStr = "files,files-external,documents,sdcard,cache,cache-external";
+            filesystemsStr = "files,files-external,documents,sdcard,cache,cache-external";
         }
 
         String[] filesystems = filesystemsStr.split(",");
 
         FileUtils filePlugin = (FileUtils)webView.pluginManager.getPlugin("File");
         if (filePlugin != null) {
-        	/* Register filesystems in order */
-        	for (String fsName: filesystems) {
-        		if (!installedFilesystems.contains(fsName)) {
-        			String fsRoot = availableFilesystems.get(fsName);
-        			if (fsRoot != null) {
-        				new File(fsRoot).mkdirs();
-        				filePlugin.registerFilesystem(new LocalFilesystem(fsName, cordova, fsRoot));
-        				installedFilesystems.add(fsName);
-        			} else {
-        				Log.d(TAG, "Unrecognized extra filesystem identifier: " + fsName);
-        			}
-        		}
-        	}
+            /* Register filesystems in order */
+            for (String fsName: filesystems) {
+                if (!installedFilesystems.contains(fsName)) {
+                    String fsRoot = availableFilesystems.get(fsName);
+                    if (fsRoot != null) {
+                        new File(fsRoot).mkdirs();
+                        filePlugin.registerFilesystem(new LocalFilesystem(fsName, cordova,
fsRoot));
+                        installedFilesystems.add(fsName);
+                    } else {
+                        Log.d(TAG, "Unrecognized extra filesystem identifier: " + fsName);
+                    }
+                }
+            }
         } else {
-        	Log.d(TAG, "File plugin not found; cannot initialize file-extras plugin");
+            Log.d(TAG, "File plugin not found; cannot initialize file-extras plugin");
         }
 
     }


Mime
View raw message