From 9577a5e8e2a732cd5f1dc8533a1609ee9919e2d2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 12 Feb 2022 18:52:24 +0100 Subject: [PATCH] do not show the Temporarily show/hide hidden at the media screen either --- .../simplemobiletools/gallery/pro/activities/MediaActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index aa2a69173..ac7a269e8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -242,8 +242,8 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { findItem(R.id.about).isVisible = mShowAll findItem(R.id.create_new_folder).isVisible = !mShowAll && mPath != RECYCLE_BIN && mPath != FAVORITES - findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden - findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden + findItem(R.id.temporarily_show_hidden).isVisible = !isRPlus() && !config.shouldShowHidden + findItem(R.id.stop_showing_hidden).isVisible = !isRPlus() && config.temporarilyShowHidden findItem(R.id.set_as_default_folder).isVisible = !isDefaultFolder findItem(R.id.unset_as_default_folder).isVisible = isDefaultFolder