mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Add update of the top and bottom status bars, on +/-Charging (#7379)
This commit is contained in:
@@ -1873,6 +1873,14 @@ function ReaderFooter:onUpdateFooter(force_repaint, force_recompute)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderFooter:onCharging()
|
||||
self:onUpdateFooter(self.view.footer_visible)
|
||||
end
|
||||
|
||||
function ReaderFooter:onNotCharging()
|
||||
self:onUpdateFooter(self.view.footer_visible)
|
||||
end
|
||||
|
||||
function ReaderFooter:updateFooterPage(force_repaint, force_recompute)
|
||||
if type(self.pageno) ~= "number" then return end
|
||||
if self.ui.document:hasHiddenFlows() then
|
||||
|
||||
Reference in New Issue
Block a user