From: jabarros Date: Tue, 23 Dec 2014 08:15:59 +0000 (+0100) Subject: Fixed. Yellow arrow is not gone when there is not something to download X-Git-Tag: oc-android-1.7.0_signed~23^2~21 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/1cc6d8c61284f341867ee1d99af2036f805208de?hp=--cc Fixed. Yellow arrow is not gone when there is not something to download --- 1cc6d8c61284f341867ee1d99af2036f805208de diff --git a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java index 97ee18d3..abbd1ba5 100644 --- a/src/com/owncloud/android/operations/SynchronizeFolderOperation.java +++ b/src/com/owncloud/android/operations/SynchronizeFolderOperation.java @@ -160,6 +160,16 @@ public class SynchronizeFolderOperation extends SyncOperation { if (result.isSuccess()) { syncContents(client); } + + if (mFilesForDirectDownload.isEmpty()) { + // Send a broadcast message for notifying UI update + Intent uiUpdate = new Intent(FileDownloader.getDownloadFinishMessage()); + uiUpdate.putExtra(FileDownloader.EXTRA_DOWNLOAD_RESULT, result.isSuccess()); + uiUpdate.putExtra(FileDownloader.ACCOUNT_NAME, mAccount.name); + uiUpdate.putExtra(FileDownloader.EXTRA_REMOTE_PATH, mRemotePath); + uiUpdate.putExtra(FileDownloader.EXTRA_FILE_PATH, mLocalFolder.getRemotePath()); + mContext.sendStickyBroadcast(uiUpdate); + } } } catch (OperationCancelledException e) { result = new RemoteOperationResult(e);