mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00: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:
parent
9cd305177e
commit
db8786f058
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user