diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt index 912f7541b..3d49e28c9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt @@ -182,13 +182,13 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList bottom_delete.beGone() bottom_edit.setOnClickListener { - if (mUri != null) { + if (mUri != null && bottom_actions.alpha == 1f) { openEditor(mUri!!.toString()) } } bottom_share.setOnClickListener { - if (mUri != null) { + if (mUri != null && bottom_actions.alpha == 1f) { sharePath(mUri!!.toString()) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 015eafa9a..71fae94f5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -762,19 +762,27 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View private fun initBottomActionButtons() { bottom_favorite.setOnClickListener { - toggleFavorite() + if (bottom_actions.alpha == 1f) { + toggleFavorite() + } } bottom_edit.setOnClickListener { - openEditor(getCurrentPath()) + if (bottom_actions.alpha == 1f) { + openEditor(getCurrentPath()) + } } bottom_share.setOnClickListener { - shareMediumPath(getCurrentPath()) + if (bottom_actions.alpha == 1f) { + shareMediumPath(getCurrentPath()) + } } bottom_delete.setOnClickListener { - checkDeleteConfirmation() + if (bottom_actions.alpha == 1f) { + checkDeleteConfirmation() + } } }