mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user