From 98ed5c199131ba450222d3ff0a9c165316834b68 Mon Sep 17 00:00:00 2001 From: sidhantailawadi Date: Sat, 4 Dec 2021 16:21:00 +0530 Subject: [PATCH] Reverses the condition to show the toggle hide/unhide icon (#2280) --- .../gallery/pro/activities/ViewPagerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 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..57f525315 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 @@ -898,7 +898,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View val favoriteIcon = if (medium.isFavorite) R.drawable.ic_star_vector else R.drawable.ic_star_outline_vector bottom_favorite.setImageResource(favoriteIcon) - val hideIcon = if (medium.isHidden()) R.drawable.ic_unhide_vector else R.drawable.ic_hide_vector + val hideIcon = if (medium.isHidden()) R.drawable.ic_hide_vector else R.drawable.ic_unhide_vector bottom_toggle_file_visibility.setImageResource(hideIcon) bottom_rotate.beVisibleIf(config.visibleBottomActions and BOTTOM_ACTION_ROTATE != 0 && getCurrentMedium()?.isImage() == true)