|
@@ -209,16 +209,16 @@ class WebtoonViewer(val activity: ReaderActivity) : BaseViewer {
|
|
|
|
|
|
when (event.keyCode) {
|
|
|
KeyEvent.KEYCODE_VOLUME_DOWN -> {
|
|
|
- if (activity.menuVisible) {
|
|
|
+ if (!config.volumeKeysEnabled || activity.menuVisible) {
|
|
|
return false
|
|
|
- } else if (config.volumeKeysEnabled && isUp) {
|
|
|
+ } else if (isUp) {
|
|
|
if (!config.volumeKeysInverted) scrollDown() else scrollUp()
|
|
|
}
|
|
|
}
|
|
|
KeyEvent.KEYCODE_VOLUME_UP -> {
|
|
|
- if (activity.menuVisible) {
|
|
|
+ if (!config.volumeKeysEnabled || activity.menuVisible) {
|
|
|
return false
|
|
|
- } else if (config.volumeKeysEnabled && isUp) {
|
|
|
+ } else if (isUp) {
|
|
|
if (!config.volumeKeysInverted) scrollUp() else scrollDown()
|
|
|
}
|
|
|
}
|