Frontlight - Add checkbox use system settings (#5307)
See: https://github.com/koreader/koreader/issues/5205#issuecomment-526935357 Devices with `hasLightLevelFallback = true` (for now Android) has extra checkbutton `Use system settings`. Default unchecked.
This commit is contained in:
1 parent
2cd9b50137
commit
ae50569055
6 files changed
+83
-10
No files matched your search
@@ -179,7 +179,9 @@ end
|
||||
|
||||
function ReaderFrontLight:onShowFlDialog()
|
||||
local FrontLightWidget = require("ui/widget/frontlightwidget")
|
||||
UIManager:show(FrontLightWidget:new{})
|
||||
UIManager:show(FrontLightWidget:new{
|
||||
use_system_fl = Device:hasLightLevelFallback()
|
||||
})
|
||||
end
|
||||
|
||||
function ReaderFrontLight:close()
|
||||
|
||||
Reference in new issue
Block a user