From 39b8ce7a08b0c791b311a92a0520c9d950bface5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 5 Dec 2021 18:35:19 +0100 Subject: [PATCH] updating the bottom action Toggle visibility tooltip to show current state --- .../gallery/pro/activities/ViewPagerActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt index 0f35852a3..36d9af350 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt @@ -850,7 +850,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } bottom_toggle_file_visibility.beVisibleIf(visibleBottomActions and BOTTOM_ACTION_TOGGLE_VISIBILITY != 0) - bottom_toggle_file_visibility.setOnLongClickListener { toast(R.string.toggle_file_visibility); true } + bottom_toggle_file_visibility.setOnLongClickListener { + toast(if (currentMedium?.isHidden() == true) R.string.unhide else R.string.hide); true + } bottom_toggle_file_visibility.setOnClickListener { currentMedium?.apply { toggleFileVisibility(!isHidden()) {