Be sure that root directoriy is listed when the synchronization is really fast
authorDavid A. Velasco <dvelasco@solidgear.es>
Tue, 17 Jul 2012 13:28:27 +0000 (15:28 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Tue, 17 Jul 2012 13:28:27 +0000 (15:28 +0200)
AndroidManifest.xml
src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java

index 9e2a64a..9c4b2f9 100644 (file)
@@ -18,7 +18,7 @@
  -->\r
 <manifest package="eu.alefzero.owncloud"\r
     android:versionCode="1"\r
-    android:versionName="0.1.163B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionName="0.1.164B" xmlns:android="http://schemas.android.com/apk/res/android">\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
index 81a8da1..f9de1ac 100644 (file)
@@ -644,7 +644,8 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements
                     fillBlankRoot = (mCurrentDir != null);\r
                 }\r
 \r
-                if (synchFolderRemotePath != null && mCurrentDir != null && (mCurrentDir.getRemotePath().equals(synchFolderRemotePath) || fillBlankRoot) ) {\r
+                if ((synchFolderRemotePath != null && mCurrentDir != null && (mCurrentDir.getRemotePath().equals(synchFolderRemotePath)))\r
+                        || fillBlankRoot ) {\r
                     FileListFragment fileListFragment = (FileListFragment) getSupportFragmentManager()\r
                             .findFragmentById(R.id.fileList);\r
                     mCurrentDir = getStorageManager().getFileByPath(synchFolderRemotePath);\r