Removing extra clear, load and bind of default workspace
-> If the user clicks "start fresh" we don't need to reload the workspace since we've already loaded the default workspace from the primary load in onCreate. Change-Id: I43cb9e66fd49403ab6e0723cab1a03edd3dcac1b
This commit is contained in:
@@ -438,11 +438,8 @@ class LauncherClings {
|
||||
}
|
||||
|
||||
public void dismissMigrationClingUseDefault(View v) {
|
||||
// Clear the workspace
|
||||
LauncherModel model = mLauncher.getModel();
|
||||
model.resetLoadedState(false, true);
|
||||
model.startLoader(false, PagedView.INVALID_RESTORE_PAGE,
|
||||
LauncherModel.LOADER_FLAG_CLEAR_WORKSPACE);
|
||||
// Don't need to do anything special here. We've already loaded the default workspace,
|
||||
// (which is the default loader behavior triggered from Launcher#onCreate.).
|
||||
|
||||
// Disable the migration cling
|
||||
dismissMigrationCling();
|
||||
|
||||
Reference in New Issue
Block a user