[Android]: Native light dialog (#6426)

* Adds support for Tolino Epos 2 warmth light
This commit is contained in:
zwim
2020-08-02 22:27:49 +02:00
committed by GitHub
parent 0511cb1d48
commit a6763465b4
5 changed files with 64 additions and 10 deletions

View File

@@ -201,6 +201,14 @@ if Device:isAndroid() then
local isAndroid, android = pcall(require, "android")
if not isAndroid then return end
-- overwrite generic frontlight with a native Dialog
common_settings.frontlight = {
text = _("Frontlight"),
callback = function()
Device:showLightDialog()
end,
}
-- screen timeout options, disabled if device needs wakelocks.
common_settings.screen_timeout = require("ui/elements/screen_android"):getTimeoutMenuTable()