From 1bbfd7484e3ffc4e3e8ada944c10a54e1e5847ec Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 20 Aug 2021 14:01:49 +0200 Subject: [PATCH] make sure the bottom action Rotate button is visible only when appropriate --- .../gallery/pro/activities/ViewPagerActivity.kt | 1 + 1 file changed, 1 insertion(+) 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 84611937e..b7d9a30da 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 @@ -802,6 +802,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View checkDeleteConfirmation() } + bottom_rotate.beVisibleIf(config.visibleBottomActions and BOTTOM_ACTION_ROTATE != 0 && getCurrentMedium()?.isImage() == true) bottom_rotate.setOnLongClickListener { toast(R.string.rotate); true } bottom_rotate.setOnClickListener { rotateImage(90)