android: disable wakelocks by default

This commit is contained in:
Martín Fernández
2019-01-21 22:44:32 +01:00
committed by Frans de Jonge
parent 23f1597246
commit 6b3158e497
3 changed files with 6 additions and 6 deletions

View File

@@ -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)