Merge "Fix jumpiness when dragging surface down and up." into tm-qpr-dev am: dc51afd920

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

Change-Id: I28b7dc9bb054db2ee33951a063be1c0f50a1e7ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Brandon Dayauon
2022-08-23 20:55:49 +00:00
committed by Automerger Merge Worker

View File

@@ -32,6 +32,7 @@ import static com.android.launcher3.util.window.RefreshRateTracker.getSingleFram
import android.animation.Animator.AnimatorListener;
import android.animation.ValueAnimator;
import android.util.Log;
import android.view.MotionEvent;
import com.android.launcher3.Launcher;
@@ -211,6 +212,10 @@ public abstract class AbstractStateChangeTouchController
mFlingBlockCheck.blockFling();
}
}
if (mFromState == LauncherState.ALL_APPS) {
mAllAppsOvershootStarted = true;
mLauncher.getAppsView().onPull(-progress , -progress);
}
} else if (progress >= 1) {
if (reinitCurrentAnimation(true, isDragTowardPositive)) {
mDisplacementShift = displacement;