check frontlight before setting intensity
This commit is contained in:
1 parent
7f57996499
commit
f65ae9a2b5
1 file changed
+1
-1
+1
-1
@@ -271,7 +271,7 @@ local last_file = G_reader_settings:readSetting("lastfile")
|
||||
|
||||
do
|
||||
local fl = Device:getFrontlight()
|
||||
if fl.restore_settings then
|
||||
if fl and fl.restore_settings then
|
||||
local intensity = G_reader_settings:readSetting("frontlight_intensity")
|
||||
intensity = intensity or fl.intensity
|
||||
fl:setIntensity(intensity)
|
||||
|
||||
Reference in new issue
Block a user