Merge "Scroll AllApps to top when new padding is set." into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
460e2c4299
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user