Scroll AllApps to top when new padding is set.

Bug: 198212488
Test: presubmit
Change-Id: I084939e3c7685531c56b1478887fd872e0e101e9
This commit is contained in:
Samuel Fufa
2021-09-07 12:14:32 -07:00
committed by sfufa@google.com
parent 305d0463b1
commit 2397d60074
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();
}