Browse Source

OC-2755: Refresh account shows empty icon sometimes

masensio 11 years ago
parent
commit
a6589abc54
1 changed files with 5 additions and 7 deletions
  1. 5 7
      src/com/owncloud/android/ui/activity/FileDisplayActivity.java

+ 5 - 7
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -923,13 +923,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
             RemoteOperationResult synchResult = (RemoteOperationResult)intent.getSerializableExtra(FileSyncService.SYNC_RESULT);
             RemoteOperationResult synchResult = (RemoteOperationResult)intent.getSerializableExtra(FileSyncService.SYNC_RESULT);
 
 
             if (getAccount() != null && accountName.equals(getAccount().name)
             if (getAccount() != null && accountName.equals(getAccount().name)
-                    && mStorageManager != null
-                    ) {  
-
-                /// get the shared files
-                if (isSharedSupported()) {
-                    startGetShares();
-                }
+                    && mStorageManager != null) {
                 
                 
                 String synchFolderRemotePath = intent.getStringExtra(FileSyncService.SYNC_FOLDER_REMOTE_PATH); 
                 String synchFolderRemotePath = intent.getStringExtra(FileSyncService.SYNC_FOLDER_REMOTE_PATH); 
 
 
@@ -961,6 +955,10 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
                 }
                 }
                 
                 
                 if (!mRefreshSharesInProgress) {
                 if (!mRefreshSharesInProgress) {
+                    /// get the shared files
+                    if (isSharedSupported()) {
+                        startGetShares();
+                    }
                     setSupportProgressBarIndeterminateVisibility(inProgress);
                     setSupportProgressBarIndeterminateVisibility(inProgress);
                 } else {
                 } else {
                     setSupportProgressBarIndeterminateVisibility(true);
                     setSupportProgressBarIndeterminateVisibility(true);