mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
ReaderRolling: fix batched notifications sometimes not shown
When a profile changes a few settings (ie. font), a few notifications may be stacked, before the single rerendering happens. If that rendering takes some time, the notifications' timeout may close them as soon as it is done, before they get a chance to be painted/refreshed. So, delay a bit more that rerendering to be sure the notifications are shown.
This commit is contained in:
@@ -968,8 +968,8 @@ function ReaderRolling:onBatchedUpdateDone()
|
||||
if self.batched_update_count <= 0 then
|
||||
self.batched_update_count = 0
|
||||
-- Be sure any Notification gets a chance to be painted before
|
||||
-- a blocking rerendering
|
||||
UIManager:nextTick(self.onUpdatePos, self)
|
||||
-- a blocking rerendering (:nextTick() is not enough)
|
||||
UIManager:tickAfterNext(self.onUpdatePos, self)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user