diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index cb6e1b66a..eaf619d83 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -247,10 +247,25 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea return true } } + KeyEvent.KEYCODE_VOLUME_UP -> { + } + KeyEvent.KEYCODE_VOLUME_DOWN -> { + } + KeyEvent.KEYCODE_SPACE -> { + } } return super.onKeyDown(keyCode, event) } + override fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean { + when (keyCode) { + KeyEvent.KEYCODE_VOLUME_UP, KeyEvent.KEYCODE_VOLUME_DOWN -> { + + } + } + return super.onKeyUp(keyCode, event) + } + /** * 加载章节内容 */