@ -83,8 +83,8 @@ function ReaderCoptListener:updateHeader()
-- Have crengine display accurate time and battery on its next drawing
-- Have crengine display accurate time and battery on its next drawing
self.ui . rolling : updateBatteryState ( )
self.ui . rolling : updateBatteryState ( )
self.ui . document : resetBufferCache ( ) -- be sure next repaint is a redrawing
self.ui . document : resetBufferCache ( ) -- be sure next repaint is a redrawing
-- Force a re paint (we could avoid it if the top menu is shown as i t
-- Force a re fresh if we're not hidden behind another widge t
-- would fully cover the header, but let's not bother)
if UIManager : getTopWidget ( ) == " ReaderUI " then
UIManager : setDirty ( self.view . dialog , " ui " ,
UIManager : setDirty ( self.view . dialog , " ui " ,
Geom : new {
Geom : new {
x = 0 , y = 0 ,
x = 0 , y = 0 ,
@ -92,6 +92,7 @@ function ReaderCoptListener:updateHeader()
h = self.ui . document : getHeaderHeight ( ) ,
h = self.ui . document : getHeaderHeight ( ) ,
}
}
)
)
end
end
end
function ReaderCoptListener : unscheduleHeaderRefresh ( )
function ReaderCoptListener : unscheduleHeaderRefresh ( )