commit | cee6ddf3deaed339e6d6df7f1682c725a00197b9 | [log] [tgz] |
---|---|---|
author | Hui Kang <huikang@google.com> | Mon Oct 17 18:27:18 2022 +0000 |
committer | Hui Kang <huikang@google.com> | Mon Oct 17 20:37:49 2022 +0000 |
tree | aea71399b85d1ec10cb8cc8ca6f0c6e0966bebbb | |
parent | 20bbe95ddbe0d93a50e18aba4623cc844ecfb9e5 [diff] [blame] |
Revert "Updating the scroll calculation from recyclerView to avoid view inflation" This reverts commit 20bbe95ddbe0d93a50e18aba4623cc844ecfb9e5. Reason for revert: Causing flake in Ironwood test: b/248295569 Test: ABTD Before: Flaky, 14/50 PASSED https://android-build.googleplex.com/builds/abtd/run/L33900000956890639 Revert: 50/50 PASSED https://android-build.googleplex.com/builds/abtd/run/L49200000956887317 Change-Id: I41f4428c74e581323f90c716a7852b5e553ae27d
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index c85924e..6bdfa1c 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java
@@ -2779,7 +2779,7 @@ View v = getFirstMatch(Collections.singletonList(activeRecyclerView), preferredItem, packageAndUserAndApp); - if (v != null && activeRecyclerView.computeVerticalScrollOffset() > 0) { + if (v != null && activeRecyclerView.getCurrentScrollY() > 0) { RectF locationBounds = new RectF(); FloatingIconView.getLocationBoundsForView(this, v, false, locationBounds, new Rect());