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

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

No files matched your search

+2 -1
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;
}
}