commit | f34811d3a3c1969a45da452fe8ba6ff336c6e9a4 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Fri Oct 21 20:42:34 2022 +0000 |
committer | Hui Kang <huikang@google.com> | Sat Oct 22 15:37:47 2022 +0000 |
tree | 82a785454d392552f134bc7b928614b646d6c2ae | |
parent | ac29981a4259c09c88086999c45540395a238bef [diff] [blame] |
Revert "Revert "Updating the scroll calculation from recyclerView to avoid view inflation"" Test: ABTD https://android-build.googleplex.com/builds/abtd/run/L52600000956969786 This reverts commit cee6ddf3deaed339e6d6df7f1682c725a00197b9. Reason for revert: Fixed in ag/20239136 Change-Id: I0e8446e66d9a86a94b40fcbd6de14da07abe8e5c
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 3abefe0..07d0f55 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java
@@ -2803,7 +2803,7 @@ View v = getFirstMatch(Collections.singletonList(activeRecyclerView), preferredItem, packageAndUserAndApp); - if (v != null && activeRecyclerView.getCurrentScrollY() > 0) { + if (v != null && activeRecyclerView.computeVerticalScrollOffset() > 0) { RectF locationBounds = new RectF(); FloatingIconView.getLocationBoundsForView(this, v, false, locationBounds, new Rect());