fix #2192, disable fullscreen bottom actions if invisible
This commit is contained in:
parent
43e5b8bb51
commit
a39b4ee459
1 changed files with 5 additions and 8 deletions
|
@ -1282,14 +1282,11 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
(it as MyPagerAdapter).toggleFullscreen(mIsFullScreen)
|
(it as MyPagerAdapter).toggleFullscreen(mIsFullScreen)
|
||||||
val newAlpha = if (mIsFullScreen) 0f else 1f
|
val newAlpha = if (mIsFullScreen) 0f else 1f
|
||||||
top_shadow.animate().alpha(newAlpha).start()
|
top_shadow.animate().alpha(newAlpha).start()
|
||||||
if (bottom_actions.isVisible()) {
|
bottom_actions.animate().alpha(newAlpha).withStartAction {
|
||||||
bottom_actions.animate().alpha(newAlpha).start()
|
bottom_actions.beVisible()
|
||||||
arrayOf(bottom_favorite, bottom_edit, bottom_share, bottom_delete, bottom_rotate, bottom_properties, bottom_change_orientation,
|
}.withEndAction {
|
||||||
bottom_slideshow, bottom_show_on_map, bottom_toggle_file_visibility, bottom_rename, bottom_set_as, bottom_copy, bottom_move,
|
bottom_actions.beVisibleIf(newAlpha == 1f)
|
||||||
bottom_resize).forEach {
|
}.start()
|
||||||
it.isClickable = !mIsFullScreen
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue