Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d184971c authored by Mark Renouf's avatar Mark Renouf
Browse files

Fix restore of RecyclerView scroll position

Always subtract a delta to return to the origin.

Bug: 175740554
Fix: 175740554
Test: manual
Change-Id: I2bbce8f12eed34f2fe524784ea53cf42499ab690
parent ade199be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {