summaryrefslogtreecommitdiff
path: root/tools/dump-coverage/dump_coverage.cc
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2020-05-12 13:34:01 +0800
committerWei Sheng Shih <wilsonshih@google.com>2020-05-14 04:24:12 +0000
commite5cad56d4e642b4789160a3bcabba92ea82b3f26 (patch)
treeeb8f4f8a336595316f5b367e82388879beea2d90 /tools/dump-coverage/dump_coverage.cc
parenta24033d8aacc8e96b1fadace0ea1e7e0073335a7 (diff)
Fix the starting window could not be removed.
When trying to remove the starting window from an activity and there is another new transition applied, the starting window could not be removed because 1. ActivityRecord#startingDisplayed were set to false. 2. Cannot apply TRANSIT_PREV_DONE animation in removeIfPossible because firstWindowDrawn and startingDisplayed are both false. 3. Because the task is animating, so it thought the animation is applied and we should wait for #onAnimationFinished. There are two things to do for fix this issue 1. Only set startingDisplayed to false when the starting window must not exist. 2. Check the animation is applied for the starting window instead check isAnimating for whole task. Fixes: 154189349 Test: atest AppWindowTokenTests Change-Id: I9bda35c792aaa4d0865b370faca09f1a90035c29
Diffstat (limited to 'tools/dump-coverage/dump_coverage.cc')
0 files changed, 0 insertions, 0 deletions