From c7660cf30307017783ce294f61b84bfc5b29899c Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 1 Sep 2019 12:50:18 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/readbook/ReadBookActivity.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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) + } + /** * 加载章节内容 */