Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8457d491 authored by Adam Cohen's avatar Adam Cohen
Browse files

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
parent 57884c7e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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();