mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Merge "launcher: correct page spacing for multiple panels in RTL" into sc-v2-dev
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user