From: purigarcia Date: Wed, 8 Jul 2015 06:55:41 +0000 (+0200) Subject: this two options are not shown if the file is downloading or uploading X-Git-Tag: oc-android-1.8~60^2~13 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/32346efa622bf04c48c2143df110c2c890924d64 this two options are not shown if the file is downloading or uploading --- diff --git a/src/com/owncloud/android/files/FileMenuFilter.java b/src/com/owncloud/android/files/FileMenuFilter.java index d6c075d6..4ed9e649 100644 --- a/src/com/owncloud/android/files/FileMenuFilter.java +++ b/src/com/owncloud/android/files/FileMenuFilter.java @@ -215,6 +215,22 @@ public class FileMenuFilter { toShow.add(R.id.action_send_file); } + // FAVORITES + if (mFile == null || downloading || uploading) { + toHide.add(R.id.action_favorite_file); + + } else { + toShow.add(R.id.action_favorite_file); + } + + // UNFAVORITES + if (mFile == null || downloading || uploading) { + toHide.add(R.id.action_unfavorite_file); + + } else { + toShow.add(R.id.action_unfavorite_file); + } + } }