mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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