mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 22:01:51 +01:00
Implement #226
This commit is contained in:
parent
bbfe0a0cd1
commit
b3cf7dbc14
@ -175,12 +175,12 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
|
|||||||
val action = event.action
|
val action = event.action
|
||||||
val keyCode = event.keyCode
|
val keyCode = event.keyCode
|
||||||
when (keyCode) {
|
when (keyCode) {
|
||||||
KeyEvent.KEYCODE_VOLUME_DOWN -> {
|
KeyEvent.KEYCODE_VOLUME_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT -> {
|
||||||
if (action == KeyEvent.ACTION_UP)
|
if (action == KeyEvent.ACTION_UP)
|
||||||
viewer?.moveToNext()
|
viewer?.moveToNext()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
KeyEvent.KEYCODE_VOLUME_UP -> {
|
KeyEvent.KEYCODE_VOLUME_UP, KeyEvent.KEYCODE_DPAD_RIGHT -> {
|
||||||
if (action == KeyEvent.ACTION_UP)
|
if (action == KeyEvent.ACTION_UP)
|
||||||
viewer?.moveToPrevious()
|
viewer?.moveToPrevious()
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user