mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 11:40:47 +01:00
Implement #226
This commit is contained in:
parent
bbfe0a0cd1
commit
b3cf7dbc14
1 changed files with 2 additions and 2 deletions
|
@ -175,12 +175,12 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
|
|||
val action = event.action
|
||||
val keyCode = event.keyCode
|
||||
when (keyCode) {
|
||||
KeyEvent.KEYCODE_VOLUME_DOWN -> {
|
||||
KeyEvent.KEYCODE_VOLUME_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT -> {
|
||||
if (action == KeyEvent.ACTION_UP)
|
||||
viewer?.moveToNext()
|
||||
return true
|
||||
}
|
||||
KeyEvent.KEYCODE_VOLUME_UP -> {
|
||||
KeyEvent.KEYCODE_VOLUME_UP, KeyEvent.KEYCODE_DPAD_RIGHT -> {
|
||||
if (action == KeyEvent.ACTION_UP)
|
||||
viewer?.moveToPrevious()
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue