Merge "Notify recents controller when no-longer finishing-to-home" into tm-qpr-dev am: 4a8871ce4c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19583219

Change-Id: I75db30294716086227d8c01b0a2d3d6c8a0587e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Rosky
2022-08-16 19:58:16 +00:00
committed by Automerger Merge Worker

View File

@@ -593,6 +593,15 @@ public final class TaskViewUtils {
Animator launcherAnim;
final AnimatorListenerAdapter windowAnimEndListener;
if (launcherClosing) {
// Since Overview is in launcher, just opening overview sets willFinishToHome to true.
// Now that we are closing the launcher, we need to (re)set willFinishToHome back to
// false. Otherwise, RecentsAnimationController can't differentiate between closing
// overview to 3p home vs closing overview to app.
final RecentsAnimationController raController =
recentsView.getRecentsAnimationController();
if (raController != null) {
raController.setWillFinishToHome(false);
}
Context context = v.getContext();
DeviceProfile dp = BaseActivity.fromContext(context).getDeviceProfile();
launcherAnim = dp.isTablet