Merge "Null out mRemoteTargetHandles when swiping to home" into tm-dev
This commit is contained in:
commit
aa2f879c55
3 files changed
+3
-1
No files matched your search
@@ -186,6 +186,7 @@ public class FallbackSwipeHandler extends
|
|||||||
} else {
|
} else {
|
||||||
recentsCallback = callback;
|
recentsCallback = callback;
|
||||||
}
|
}
|
||||||
|
mRecentsView.cleanupRemoteTargets();
|
||||||
mRecentsAnimationController.finish(
|
mRecentsAnimationController.finish(
|
||||||
mAppCanEnterPip /* toRecents */, recentsCallback, true /* sendUserLeaveHint */);
|
mAppCanEnterPip /* toRecents */, recentsCallback, true /* sendUserLeaveHint */);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ public class LauncherSwipeHandlerV2 extends
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void finishRecentsControllerToHome(Runnable callback) {
|
protected void finishRecentsControllerToHome(Runnable callback) {
|
||||||
|
mRecentsView.cleanupRemoteTargets();
|
||||||
mRecentsAnimationController.finish(
|
mRecentsAnimationController.finish(
|
||||||
true /* toRecents */, callback, true /* sendUserLeaveHint */);
|
true /* toRecents */, callback, true /* sendUserLeaveHint */);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4283,7 +4283,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
}
|
}
|
||||||
mPendingAnimation.addEndListener(isSuccess -> {
|
mPendingAnimation.addEndListener(isSuccess -> {
|
||||||
if (isSuccess) {
|
if (isSuccess) {
|
||||||
if (tv.getTaskIds()[1] != -1) {
|
if (tv.getTaskIds()[1] != -1 && mRemoteTargetHandles != null) {
|
||||||
// TODO(b/194414938): make this part of the animations instead.
|
// TODO(b/194414938): make this part of the animations instead.
|
||||||
TaskViewUtils.createSplitAuxiliarySurfacesAnimator(
|
TaskViewUtils.createSplitAuxiliarySurfacesAnimator(
|
||||||
mRemoteTargetHandles[0].getTransformParams().getTargetSet().nonApps,
|
mRemoteTargetHandles[0].getTransformParams().getTargetSet().nonApps,
|
||||||
|
|||||||
Reference in new issue
Block a user