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

This commit is contained in:
TreeHugger Robot
2021-09-16 17:01:22 +00:00
committed by Android (Google) Code Review
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);