Revert "Updating the scroll calculation from recyclerView to avoid view inflation"
This reverts commit 20bbe95ddb.
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
This commit is contained in:
1 parent
20bbe95ddb
commit
cee6ddf3de
12 files changed
+211
-212
No files matched your search
@@ -119,6 +119,7 @@ public class RecyclerViewFastScroller extends View {
|
||||
// prevent jumping, this offset is applied as the user scrolls.
|
||||
protected int mTouchOffsetY;
|
||||
protected int mThumbOffsetY;
|
||||
protected int mRvOffsetY;
|
||||
|
||||
// Fast scroller popup
|
||||
private TextView mPopupView;
|
||||
@@ -206,11 +207,16 @@ public class RecyclerViewFastScroller extends View {
|
||||
|
||||
public void setThumbOffsetY(int y) {
|
||||
if (mThumbOffsetY == y) {
|
||||
int rvCurrentOffsetY = mRv.getCurrentScrollY();
|
||||
if (mRvOffsetY != rvCurrentOffsetY) {
|
||||
mRvOffsetY = mRv.getCurrentScrollY();
|
||||
}
|
||||
return;
|
||||
}
|
||||
updatePopupY(y);
|
||||
mThumbOffsetY = y;
|
||||
invalidate();
|
||||
mRvOffsetY = mRv.getCurrentScrollY();
|
||||
}
|
||||
|
||||
public int getThumbOffsetY() {
|
||||
|
||||
Reference in new issue
Block a user