pull/32/head
kunfei 5 years ago
parent 973066795c
commit e426e87753
  1. 9
      app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt

@ -181,11 +181,10 @@ class ReadMenu : FrameLayout {
override fun onAnimationEnd(animation: Animation) { override fun onAnimationEnd(animation: Animation) {
vw_menu_bg.onClick { runMenuOut() } vw_menu_bg.onClick { runMenuOut() }
if (context.getPrefBoolean("hideNavigationBar")) { val lp = vwNavigationBar.layoutParams
vwNavigationBar.layoutParams.height = context.getNavigationBarHeight() lp.height = if (context.getPrefBoolean("hideNavigationBar"))
} else { context.getNavigationBarHeight() else 0
vwNavigationBar.layoutParams.height = 0 vwNavigationBar.layoutParams = lp
}
} }
override fun onAnimationRepeat(animation: Animation) { override fun onAnimationRepeat(animation: Animation) {

Loading…
Cancel
Save