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

Commit d7022dc0 authored by Federico Baron's avatar Federico Baron Committed by Android (Google) Code Review
Browse files

Merge "Page resets when scrolling slowly fix" into 24D1-dev

parents 028e1fcd a7825a70
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -826,7 +826,9 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
                // or right edge for RTL.
                final int pageScroll =
                        mIsRtl ? childPrimaryEnd - scrollOffsetEnd : childStart - scrollOffsetStart;
                if (outPageScrolls[i] != pageScroll) {
                // If there's more than one panel, only update scroll on leftmost panel.
                if (outPageScrolls[i] != pageScroll
                        && (panelCount <= 1 || i == getLeftmostVisiblePageForIndex(i))) {
                    pageScrollChanged = true;
                    outPageScrolls[i] = pageScroll;
                }