Merge "Make sure to call onTasksAppeared when app transiton is handled." into tm-qpr-dev

This commit is contained in:
Issei Suzuki
2022-09-30 11:34:20 +00:00
committed by Android (Google) Code Review

View File

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