Scroll AllApps to top when new padding is set.

Bug: 198212488
Test: presubmit
Change-Id: I084939e3c7685531c56b1478887fd872e0e101e9
This commit is contained in:
Samuel Fufa authored and sfufa@google.com committed 2021-09-15 14:40:39 -07:00
1 parent 305d0463b1
commit 2397d60074
2 files changed
+5

No files matched your search

@@ -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();
}