pull/32/head
kunfei 5 years ago
parent c9099b5b5a
commit 337d393f71
  1. 6
      app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt

@ -199,13 +199,13 @@ class ReadMenu : FrameLayout {
override fun onAnimationEnd(animation: Animation) { override fun onAnimationEnd(animation: Animation) {
vw_menu_bg.onClick { runMenuOut() } vw_menu_bg.onClick { runMenuOut() }
val lp = vwNavigationBar.layoutParams vwNavigationBar.layoutParams = vwNavigationBar.layoutParams.apply {
lp.height = height =
if (context.getPrefBoolean("hideNavigationBar") if (context.getPrefBoolean("hideNavigationBar")
&& Help.isNavigationBarExist(activity) && Help.isNavigationBarExist(activity)
) context.getNavigationBarHeight() ) context.getNavigationBarHeight()
else 0 else 0
vwNavigationBar.layoutParams = lp }
} }
override fun onAnimationRepeat(animation: Animation) { override fun onAnimationRepeat(animation: Animation) {

Loading…
Cancel
Save