Merge "Ensures in all apps that the scrollposition and floating header translation are reset correctly on closing all apps and switching tabs." into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2017-12-13 17:39:46 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 12 deletions

View File

@@ -495,6 +495,7 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
public void onPageSelected(int pos) {
tabs.updateTabTextColor(pos);
mHeader.setMainActive(pos == 0);
reset();
applyTouchDelegate();
if (mAH[pos].recyclerView != null) {
mAH[pos].recyclerView.bindFastScrollbar();