소스 검색

Notify the download cancelation for updating the screen and remove the yellow arrow that continues being shown after the cancel

jabarros 10 년 전
부모
커밋
e6fc5d13ad
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/com/owncloud/android/operations/SynchronizeFolderOperation.java

+ 4 - 0
src/com/owncloud/android/operations/SynchronizeFolderOperation.java

@@ -173,6 +173,10 @@ public class SynchronizeFolderOperation extends SyncOperation {
         } catch (OperationCancelledException e) {
             result = new RemoteOperationResult(e);
 
+            // Needed in case that cancellation occurs before starting any download.
+            // If not, yellow arrow continues being shown.
+            sendBroadcastForNotifyingUIUpdate(result.isSuccess());
+
             /// cancellation of download needs to be done separately in any case; a SynchronizeFolderOperation
             //  may finish much sooner than the real download of the files in the folder 
             Intent intent = new Intent(mContext, FileDownloader.class);