Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8c1b977d authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Unset sync group if sync state does not set

An extreme case when device is busy and slow, e.g. stress test by
script or monkey, the AsyncRotationController could be null when
calling TransitionController#collectForDisplayAreaChange, then
WindowToken#prepareSync skips the async windows without setting
sync state but sync group is still assigned. That results the
WindowContainer#finishSync not cleaning the group. And its sync
state of child windows will be set when calling isSyncFinished
("prepareSync in isSyncFinished"), which causes the window to
always use sync transaction.

Also add more log to indicate the corner cases.

Bug: 334838294
Flag: EXEMPT bugfix
Test: atest SyncEngineTests#testSkipPrepareSync

Change-Id: I35f8a1aa728ee5b66e4e9d6136f9761ed6e989bf
parent 733b315a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment