From cc5bf379c4dff205b66fd4ebea780333c658dea1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 20 Jun 2018 22:42:53 +0200 Subject: [PATCH] hide some menu items at the Favorites folder --- .../simplemobiletools/gallery/activities/MediaActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index adcbc7484..266a85431 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -188,9 +188,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { val isFolderHidden = File(mPath).containsNoMedia() menu.apply { - findItem(R.id.hide_folder).isVisible = !isFolderHidden && !mShowAll - findItem(R.id.unhide_folder).isVisible = isFolderHidden && !mShowAll - findItem(R.id.exclude_folder).isVisible = !mShowAll + findItem(R.id.hide_folder).isVisible = !isFolderHidden && !mShowAll && mPath != FAVORITES + findItem(R.id.unhide_folder).isVisible = isFolderHidden && !mShowAll && mPath != FAVORITES + findItem(R.id.exclude_folder).isVisible = !mShowAll && mPath != FAVORITES findItem(R.id.folder_view).isVisible = mShowAll findItem(R.id.open_camera).isVisible = mShowAll