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

Commit f4afdc41 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Avoid seeing ClearAllButton for overview grid's snap position" into sc-v2-dev

parents c7c86dff 41e77de5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3756,8 +3756,8 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
            TaskView taskView = getTaskViewAt(i);
            float scrollDiff = taskView.getScrollAdjustment(showAsFullscreen, showAsGrid);
            int pageScroll = newPageScrolls[i + mTaskViewStartIndex] + (int) scrollDiff;
            if ((mIsRtl && pageScroll < clearAllScroll)
                    || (!mIsRtl && pageScroll > clearAllScroll)) {
            if ((mIsRtl && pageScroll < clearAllScroll + clearAllWidth)
                    || (!mIsRtl && pageScroll > clearAllScroll - clearAllWidth)) {
                pageScroll = clearAllScroll + (mIsRtl ? clearAllWidth : -clearAllWidth);
            }
            if (outPageScrolls[i] != pageScroll) {