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

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

Merge "Page resets when scrolling slowly fix" into main

parents e874bd60 cae49803
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;
                }