Merge "Consider orientationHandler when calculating ClearAllButton scrollOffset" into sc-dev am: aef3a3c40a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14201246 Change-Id: Iff26f3b002cb39556444e1bc0990dd05549cda23
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user