launcher: correct page spacing for multiple panels in RTL

Fixes 199043583
Test: manual testing in unfolded state in portrait and landscape

Change-Id: Idf5bdabb50742498701681e4654e72260054ab47
This commit is contained in:
Thales Lima
2021-09-09 17:06:22 +01:00
parent 9bd2802c9b
commit c2a6f6f4ae
2 changed files with 6 additions and 3 deletions

View File

@@ -766,7 +766,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;
}
}