mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
android: add an option to ignore volume keys or use them to turn pages
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user