Merge "launcher: correct page spacing for multiple panels in RTL" into sc-v2-dev

This commit is contained in:
Thales Lima
2021-09-10 09:53:40 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 3 deletions

View File

@@ -773,7 +773,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
childStart += primaryDimension + getChildGap();
// This makes sure that the space is added after the page, not after each panel
if (i % panelCount == panelCount - 1) {
int lastPanel = mIsRtl ? 0 : panelCount - 1;
if (i % panelCount == lastPanel) {
childStart += mPageSpacing;
}
}