Merge "Make sure to call onTasksAppeared when app transiton is handled." into tm-qpr-dev am: 64d6acd763 am: 5041f560cd

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20073635

Change-Id: I36e6f716ce73199f902d8e143e112ba93cf856dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Issei Suzuki
2022-09-30 12:12:39 +00:00
committed by Automerger Merge Worker

View File

@@ -1030,8 +1030,12 @@ public class AppTransitionController {
private void applyAnimations(ArraySet<ActivityRecord> openingApps,
ArraySet<ActivityRecord> closingApps, @TransitionOldType int transit,
LayoutParams animLp, boolean voiceInteraction) {
final RecentsAnimationController rac = mService.getRecentsAnimationController();
if (transit == WindowManager.TRANSIT_OLD_UNSET
|| (openingApps.isEmpty() && closingApps.isEmpty())) {
if (rac != null) {
rac.sendTasksAppeared();
}
return;
}
@@ -1069,7 +1073,6 @@ public class AppTransitionController {
voiceInteraction);
applyAnimations(closingWcs, closingApps, transit, false /* visible */, animLp,
voiceInteraction);
final RecentsAnimationController rac = mService.getRecentsAnimationController();
if (rac != null) {
rac.sendTasksAppeared();
}