Merge "Scroll AllApps to top when new padding is set." into sc-v2-dev am: 460e2c4299

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15779369

Change-Id: Ie940e57330209524bcff2a105054ca5dc3fdea7d
This commit is contained in:
TreeHugger Robot
2021-09-16 17:12:56 +00:00
committed by Automerger Merge Worker
2 changed files with 5 additions and 0 deletions
@@ -624,6 +624,9 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
for (int i = 0; i < mAH.length; i++) {
mAH[i].padding.top = padding;
mAH[i].applyPadding();
if (mAH[i].recyclerView != null) {
mAH[i].recyclerView.scrollToTop();
}
}
mHeaderTop = mHeader.getTop();
}
@@ -47,6 +47,8 @@ public interface FloatingHeaderRow {
/**
* Scrolls the content vertically.
* @param scroll scrolled distance in pixels for active recyclerview.
* @param isScrolledOut bool to determine if row is scrolled out of view
*/
void setVerticalScroll(int scroll, boolean isScrolledOut);