-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Messages] Ensure message queue mediator is ready before any animation
The broken behavior in the bug happens when the second message is enqueued while the first message is still waiting for onStartShowing to be finished. Currently, the second message assumes the first message has already been on the screen and accidentally cancels its previous animation. During the experiment, most crashes and broken behaviors are caused during the period in which messages are waiting for mediator to be ready for showing a message. It appears there are many edge cases during that period. One reason is that currently, before executing onStartShowing, we've mutated some internal variables and made layout changes which are hard to be reverted if something unexpected occurs during that period. To simplify the logic and get rid of most edge cases, this CL makes sure message queue mediator is ready before we commit any mutation and execute any animation, such as adding views to container. Bug: 1408627 Change-Id: I73c1cc8dc8f2b5bc9cc8bff2ed6d55c4e38a15c4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4182581 Commit-Queue: Lijin Shen <lazzzis@google.com> Reviewed-by: Theresa Sullivan <twellington@chromium.org> Reviewed-by: Aishwarya Rajesh <aishwaryarj@google.com> Reviewed-by: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/main@{#1096296}
- Loading branch information
Lijin Shen
authored and
Chromium LUCI CQ
committed
Jan 24, 2023
1 parent
e7376fa
commit 9a0ee02
Showing
7 changed files
with
267 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.