Add onFrontlightStateChanged event (#2966)

So we do not need the hacky solution in KoboLight plugin anymore. PageFooter can receive and process the event itself.
This commit is contained in:
Hzj_jie authored and GitHub committed 2017-06-19 19:00:36 -07:00
1 parent bd92d68b7f
commit d83de47204
3 files changed
+22 -11

No files matched your search

@@ -668,4 +668,10 @@ function ReaderFooter:onSuspend()
end
end
function ReaderFooter:onFrontlightStateChanged()
if self.settings.frontlight then
self:updateFooter()
end
end
return ReaderFooter