android: fix frontlight dialog gesture (#6568)

reviewable/pr6576/r1
Martín Fernández 4 years ago committed by GitHub
parent 9d4c85d6c1
commit 189397e38c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save