restore frontlight setting only for Kobo devices

This commit is contained in:
chrox
2014-09-03 12:19:10 +08:00
parent 2bec0017a0
commit 69919435ac

View File

@@ -130,7 +130,8 @@ if G_reader_settings:readSetting("night_mode") then
Screen.bb:invert()
end
do
-- restore kobo frontlight settings
if Device:isKobo() then
local powerd = Device:getPowerDevice()
if powerd and powerd.restore_settings then
local intensity = G_reader_settings:readSetting("frontlight_intensity")