Merge "Fix bug where dragging icons in folders causes error" into tm-qpr-dev

This commit is contained in:
Federico Baron authored and Android (Google) Code Review committed 2023-01-04 23:22:36 +00:00
commit 7cb0133d84
1 file changed
+2 -1
@@ -568,7 +568,8 @@ public abstract class DragView<T extends Context & ActivityContext> extends Fram
.setSpring(new SpringForce(0)
.setDampingRatio(DAMPENING_RATIO)
.setStiffness(STIFFNESS));
mDelta = view.getResources().getDisplayMetrics().density * PARALLAX_MAX_IN_DP;
mDelta = Math.min(
range, view.getResources().getDisplayMetrics().density * PARALLAX_MAX_IN_DP);
}
public void animateToPos(float value) {