android: fix frontlight dialog gesture (#6568)

This commit is contained in:
Martín Fernández
2020-08-26 09:13:19 +02:00
committed by GitHub
parent 9d4c85d6c1
commit 189397e38c
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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