summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Issei Suzuki <issei@google.com> 2022-04-27 15:37:03 +0000
committer Issei Suzuki <issei@google.com> 2022-05-09 14:10:14 +0000
commitd49b5d442dd8e473f4f980a41ea83dcbeec27345 (patch)
tree86c74850afcca4ad0d571621b75ba869236813bd /libs/androidfw/StringPool.cpp
parent9c9916e4d9a4f9e8c68c23f251a48e5b6da1f3ce (diff)
Suppress app transition while recents is running
This fixes conflict between app transition and recents animation in the following scenario. 1) App transition animation finishes after app closing animation, which is controlled by recents, finishes. During the app closing animation, recents makes the closing app surface invisible, but app transition animation overrides it to visible again. This causes a flicker. 2) App transition starts during recents animation. This can happen when a user launches an activity, and immediately after that, swipes up the screen to close the app. While recents is running, we assume animation on tasks is controlled by recents, and visibility is commited without animation after recents animation finishes. However starting app transition during recents breaks this assumption, which ends up with playing one more unexpected closing animation (so users see closing animation twice). Bug: 223499269 Bug: 231669960 Test: atest AppTransitionTest + manual tests Test 1 1. Launch Gmail app 2. Click icon on the bottom tab (e.g. Chat) 3. Swipe up from the bottom (immediately after step 2) 4. Verify closing animation only plays once Test 2 1. Launch "Google TV" 2. Play a trailer 3. Full screen and PIP mode switch twice 4. Verify PIP window is shown Test 3 1. Change phone to portlait mode 2. Launch Photo app 3. Swipe up from the bottom 4. Verify no rotation animation on the launcher Change-Id: Ic18d00812308903db08d3564136f33f1eccf408c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions