make sure the bottom action Rotate button is visible only when appropriate

This commit is contained in:
tibbi 2021-08-20 14:01:49 +02:00
parent fe0f377aa8
commit 1bbfd7484e

View file

@ -802,6 +802,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
checkDeleteConfirmation() checkDeleteConfirmation()
} }
bottom_rotate.beVisibleIf(config.visibleBottomActions and BOTTOM_ACTION_ROTATE != 0 && getCurrentMedium()?.isImage() == true)
bottom_rotate.setOnLongClickListener { toast(R.string.rotate); true } bottom_rotate.setOnLongClickListener { toast(R.string.rotate); true }
bottom_rotate.setOnClickListener { bottom_rotate.setOnClickListener {
rotateImage(90) rotateImage(90)