commit | 3be13be63b7ddf7074c24854b7854fdbebf93bec | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Wed Aug 25 18:24:48 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Aug 25 18:24:48 2021 +0000 |
tree | e18474065a2d26f484f34aa46737d32832685d07 | |
parent | 495721aa683221bcc7edc6c9c4ad8f57542e968f [diff] | |
parent | 6d7a006302bcbdfdfb36feb54f8b5376a58ebb4f [diff] |
Constrain scroll amount am: 6d7a006302 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15675922 Change-Id: I451a7ae7625aba4775ccae1a08abb26812d9344a
diff --git a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java index d22abf6..bb58f45 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java +++ b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java
@@ -271,7 +271,7 @@ 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; }