Merge "Constrain scroll amount" into sc-v2-dev am: 348065811f

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

Change-Id: Ib61704ae9fd492a7569e191059f3de0acc560073
This commit is contained in:
TreeHugger Robot authored and Automerger Merge Worker committed 2021-08-14 01:11:33 +00:00
commit 33120900b8
1 file changed
+1 -1
@@ -274,7 +274,7 @@ public class DepthController implements StateHandler<LauncherState>,
public void onOverlayScrollChanged(float progress) {
// Round out the progress to dedupe frequent, non-perceptable updates
int progressI = (int) (progress * 256);
float progressF = progressI / 256f;
float progressF = Utilities.boundToRange(progressI / 256f, 0f, 1f);
if (Float.compare(mOverlayScrollProgress, progressF) == 0) {
return;
}