Merge "Update overview grid icon sizes and paddings" into tm-dev am: c9f3cc36bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17198305 Change-Id: I2afe9c5118132cae0f98fe39bb9a0002e5352ee3
This commit is contained in:
commit
f9174e82cb
5 files changed
+35
-11
No files matched your search
@@ -775,7 +775,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
pageScrollChanged = true;
|
||||
outPageScrolls[i] = pageScroll;
|
||||
}
|
||||
childStart += primaryDimension + getChildGap();
|
||||
childStart += primaryDimension + getChildGap(i, i + delta);
|
||||
|
||||
// This makes sure that the space is added after the page, not after each panel
|
||||
int lastPanel = mIsRtl ? 0 : panelCount - 1;
|
||||
@@ -799,7 +799,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
return pageScrollChanged;
|
||||
}
|
||||
|
||||
protected int getChildGap() {
|
||||
protected int getChildGap(int fromIndex, int toIndex) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> implements Cli
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getChildGap() {
|
||||
protected int getChildGap(int fromIndex, int toIndex) {
|
||||
return getPaddingLeft() + getPaddingRight();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user