Fix restore of RecyclerView scroll position
Always subtract a delta to return to the origin. Bug: 175740554 Fix: 175740554 Test: manual Change-Id: I2bbce8f12eed34f2fe524784ea53cf42499ab690
This commit is contained in:
@@ -189,7 +189,7 @@ public class RecyclerViewCaptureHelper implements ScrollCaptureViewHelper<ViewGr
|
||||
@Override
|
||||
public void onPrepareForEnd(@NonNull ViewGroup view) {
|
||||
// Restore original position and state
|
||||
view.scrollBy(0, mScrollDelta);
|
||||
view.scrollBy(0, -mScrollDelta);
|
||||
view.setOverScrollMode(mOverScrollMode);
|
||||
view.setVerticalScrollBarEnabled(mScrollBarWasEnabled);
|
||||
if (DISABLE_ANIMATORS) {
|
||||
|
||||
Reference in New Issue
Block a user