From: David A. Velasco Date: Mon, 9 Jul 2012 09:23:56 +0000 (+0200) Subject: More improvements in refresh files list while synchronizing X-Git-Tag: oc-android-1.4.3~299 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/a48014bffde47d6714ec72b1fe1051dcd44c850d?ds=inline More improvements in refresh files list while synchronizing --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d9ec9af9..5b7d1fe5 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,7 +18,7 @@ --> + android:versionName="0.1.152B" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java index 14637599..ae069b5d 100644 --- a/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java +++ b/src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java @@ -619,11 +619,14 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements if (account_name.equals(AccountUtils.getCurrentOwnCloudAccount(context).name)) { String synchFolderRemotePath = intent.getStringExtra(FileSyncService.SYNC_FOLDER_REMOTE_PATH); - - if (mCurrentDir == null) + + boolean fillBlankRoot = false; + if (mCurrentDir == null) { mCurrentDir = mStorageManager.getFileByPath("/"); + fillBlankRoot = (mCurrentDir != null); + } - if (synchFolderRemotePath != null && mCurrentDir != null && mCurrentDir.getRemotePath().equals(synchFolderRemotePath) ) { + if (synchFolderRemotePath != null && mCurrentDir != null && (mCurrentDir.getRemotePath().equals(synchFolderRemotePath) || fillBlankRoot) ) { FileListFragment fileListFragment = (FileListFragment) getSupportFragmentManager() .findFragmentById(R.id.fileList); mCurrentDir = getStorageManager().getFileByPath(synchFolderRemotePath);