diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt index 23d5d932e..7ac434ec3 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt @@ -248,7 +248,7 @@ class ReadMenu @JvmOverloads constructor( binding.vwMenuBg.setOnClickListener { runMenuOut() } binding.vwNavigationBar.run { layoutParams = layoutParams.apply { - height = activity!!.navigationBarHeight + height = activity?.navigationBarHeight ?: 0 } } if (!LocalConfig.readMenuHelpVersionIsLast) {