mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
android: fix frontlight dialog gesture (#6568)
This commit is contained in:
@@ -227,8 +227,7 @@ if Device:hasFrontlight() then
|
||||
end
|
||||
|
||||
function DeviceListener:onShowFlDialog()
|
||||
local FrontLightWidget = require("ui/widget/frontlightwidget")
|
||||
UIManager:show(FrontLightWidget:new{})
|
||||
Device:showLightDialog()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -296,6 +296,12 @@ function Device:onPowerEvent(ev)
|
||||
end
|
||||
end
|
||||
|
||||
function Device:showLightDialog()
|
||||
local FrontLightWidget = require("ui/widget/frontlightwidget")
|
||||
local UIManager = require("ui/uimanager")
|
||||
UIManager:show(FrontLightWidget:new{})
|
||||
end
|
||||
|
||||
function Device:info()
|
||||
return self.model
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user