Avoid updating display orientation from closing activity
This prevents continueUpdateOrientationForDiffOrienLaunchingApp from
being called twice (especially the order is random by the hashcode of
transition participants) for a transition when launching fixed
rotation activity. Otherwise if the display orientation is not changed
by the method, it will clear the rotation transform of the launching
activity too early, which causes flickering by
rotated > not-rotated > rotated.
Since shell transition and the support of respect-non-top-visible
orientation, some legacy conditions can be replaced. Also make
the tests adopt shell transition.
Bug: 374898575
Flag: EXEMPT bugfix
Test: atest DisplayContentTests#testApplyTopFixedRotationTransform
testFinishFixedRotationNoAppTransitioningTask
Change-Id: I2d0e265d25c1a81f044975a73d955aac658341a2
2 files changed