diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index cfb88bae07bf..f27424ea0eeb 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -504,12 +504,12 @@ class ReadBookActivity : BaseReadBookActivity(), val isDown = action == 0 if (keyCode == KeyEvent.KEYCODE_MENU) { - if (isDown && !binding.readMenu.cnaShowMenu) { + if (isDown && !binding.readMenu.canShowMenu) { binding.readMenu.runMenuIn() return true } - if (!isDown && !binding.readMenu.cnaShowMenu) { - binding.readMenu.cnaShowMenu = true + if (!isDown && !binding.readMenu.canShowMenu) { + binding.readMenu.canShowMenu = true return true } } 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 241cbfaa5cba..7d376b3f019b 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 @@ -42,7 +42,7 @@ class ReadMenu @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null ) : FrameLayout(context, attrs) { - var cnaShowMenu: Boolean = false + var canShowMenu: Boolean = false private val callBack: CallBack get() = activity as CallBack private val binding = ViewReadMenuBinding.inflate(LayoutInflater.from(context), this, true) private var confirmSkipToChapter: Boolean = false @@ -140,7 +140,7 @@ class ReadMenu @JvmOverloads constructor( this@ReadMenu.invisible() binding.titleBar.invisible() binding.bottomMenu.invisible() - cnaShowMenu = false + canShowMenu = false onMenuOutEnd?.invoke() callBack.upSystemUiVisibility() }