End the attaching animation early when we settle on the end target am: d007cd5d55

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

Change-Id: I981fd45878c7f4c7b200fc976e1187cb06e223ab
This commit is contained in:
Tony Wickham
2020-10-26 21:15:52 +00:00
committed by Automerger Merge Worker
@@ -720,6 +720,8 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte
}
private void onSettledOnEndTarget() {
// Fast-finish the attaching animation if it's still running.
maybeUpdateRecentsAttachedState(false);
switch (mGestureState.getEndTarget()) {
case HOME:
mStateCallback.setState(STATE_SCALED_CONTROLLER_HOME | STATE_CAPTURE_SCREENSHOT);