mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
android: disable wakelocks by default
This commit is contained in:
committed by
Frans de Jonge
parent
23f1597246
commit
6b3158e497
@@ -68,9 +68,9 @@ function Device:init()
|
||||
self.isTouchDevice = yes
|
||||
end
|
||||
|
||||
-- check if we disabled support for wakelocks
|
||||
if G_reader_settings:isTrue("disable_android_wakelock") then
|
||||
android.setWakeLock(false)
|
||||
-- check if we enabled support for wakelocks
|
||||
if G_reader_settings:isTrue("enable_android_wakelock") then
|
||||
android.setWakeLock(true)
|
||||
end
|
||||
|
||||
Generic.init(self)
|
||||
|
||||
Reference in New Issue
Block a user