From: jabarros Date: Thu, 8 Jan 2015 14:02:42 +0000 (+0100) Subject: Notify the download cancelation for updating the screen and remove the yellow arrow... X-Git-Tag: oc-android-1.7.0_signed~23^2~15^2~1 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/e6fc5d13ad8aff2f70a84d9cf96b253a108b836d?ds=inline;hp=--cc Notify the download cancelation for updating the screen and remove the yellow arrow that continues being shown after the cancel --- e6fc5d13ad8aff2f70a84d9cf96b253a108b836d diff --git a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java index 957cf627..f12d5dd7 100644 --- a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java +++ b/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);