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:
Mark Renouf
2020-12-15 22:42:34 -05:00
parent ade199be34
commit d184971cce

View File

@@ -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) {