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 end
function DeviceListener:onShowFlDialog() function DeviceListener:onShowFlDialog()
local FrontLightWidget = require("ui/widget/frontlightwidget") Device:showLightDialog()
UIManager:show(FrontLightWidget:new{})
end end
end end

@ -296,6 +296,12 @@ function Device:onPowerEvent(ev)
end end
end end
function Device:showLightDialog()
local FrontLightWidget = require("ui/widget/frontlightwidget")
local UIManager = require("ui/uimanager")
UIManager:show(FrontLightWidget:new{})
end
function Device:info() function Device:info()
return self.model return self.model
end end

Loading…
Cancel
Save