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 4066ed269..a25a6554b 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 @@ -224,13 +224,13 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_boo return true } getPrefInt(PreferKey.prevKey) -> { - if (keyCode != 0) { + if (keyCode != KeyEvent.KEYCODE_UNKNOWN) { page_view.moveToPrevPage() return true } } getPrefInt(PreferKey.nextKey) -> { - if (keyCode != 0) { + if (keyCode != KeyEvent.KEYCODE_UNKNOWN) { page_view.moveToNextPage() return true }