Sfoglia il codice sorgente

Extra check on progress of refresh to decide visibility of progress circle

David A. Velasco 11 anni fa
parent
commit
7f3be4620e

+ 3 - 1
src/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -971,7 +971,9 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
                         setFile(currentFile);
                     }
                     
-                    mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) && !SynchronizeFolderOperation.EVENT_SINGLE_FOLDER_SYNCED.equals(event));
+                    mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) && 
+                                        !SynchronizeFolderOperation.EVENT_SINGLE_FOLDER_SYNCED.equals(event) &&
+                                        (synchResult == null || synchResult.isSuccess())) ;
                     
                     if (synchResult != null && 
                         synchResult.isSuccess() &&