summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-04-12 12:22:14 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-04-13 22:24:51 +0800
commitedc429403d7202a8948311f3e18e4c4f3a5eeae6 (patch)
treecf305a975345cfdf0dc1e023f605ad4355046666 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent5683fda342217ac247e5efd19c9c0861fcb2d098 (diff)
Handle stopping and finishing activities on drawn
If the non idle activity is started in a new task, there may have a starting window. So the transition animation can be done with the starting window but the main window of the activity may not finish drawing if it is slow during startup. That causes the allResumedActivitiesVisible to return false and the stopping activities are still pending. By scheduling to process stopping and finishing when the activity windows are actually drawn (though its name is onWindowsVisible, it is only called if the windows are drawn, see numVisible), the pending stopping activities no longer need to wait until idle timeout to be stopped or destroyed. Also avoid sending duplicated idle message. Bug: 169740664 Test: atest ActivityVisibilityTests# \ testActivityStoppedWhileNextActivityNotIdle Change-Id: I7317bf577a1b98601b6ec027a5d7bf66090aecde
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions