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

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

Merge "Consider orientationHandler when calculating ClearAllButton scrollOffset" into sc-dev

parents bfd56a6d 81814794
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3155,7 +3155,8 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
        // Align ClearAllButton to the left (RTL) or right (non-RTL), which is different from other
        // TaskViews. This must be called after laying out ClearAllButton.
        if (layoutChildren) {
            int clearAllWidthDiff = mTaskWidth - mClearAllButton.getWidth();
            int clearAllWidthDiff = mOrientationHandler.getPrimaryValue(mTaskWidth, mTaskHeight)
                    - mOrientationHandler.getPrimarySize(mClearAllButton);
            mClearAllButton.setScrollOffsetPrimary(mIsRtl ? clearAllWidthDiff : -clearAllWidthDiff);
        }