Fixing regression, reset AllApps when the screen turns off.

- Now that we are debouncing the workspace state, we were no longer resetting
  the all apps view when the screen turns off when the user is already on the
  workspace.

Bug: 23759455
Change-Id: I996b595945de96ae6ff2344349027d4722921984
This commit is contained in:
Winson
2015-09-03 11:36:19 -07:00
parent 7412c3cb00
commit 5c6bdbbc27
2 changed files with 34 additions and 11 deletions

View File

@@ -290,6 +290,15 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
}
}
/**
* Resets the state of AllApps.
*/
public void reset() {
// Reset the search bar and base recycler view after transitioning home
mSearchBarController.reset();
mAppsRecyclerView.reset();
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
@@ -555,9 +564,7 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
@Override
public void onLauncherTransitionEnd(Launcher l, boolean animated, boolean toWorkspace) {
if (toWorkspace) {
// Reset the search bar and base recycler view after transitioning home
mSearchBarController.reset();
mAppsRecyclerView.reset();
reset();
}
}