android: add an option to ignore volume keys or use them to turn pages

This commit is contained in:
Martín Fernández
2019-08-01 18:27:24 +02:00
parent 53adb9d0e1
commit 91b2faae6a
6 changed files with 20 additions and 2 deletions

View File

@@ -182,6 +182,11 @@ function Device:init()
self:toggleFullscreen()
end
-- check if we ignore volume keys and then they're forwarded to system services.
if G_reader_settings:isTrue("android_ignore_volume_keys") then
android.setVolumeKeysIgnored(true);
end
Generic.init(self)
end