mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[Android]: Native light dialog (#6426)
* Adds support for Tolino Epos 2 warmth light
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user