From 8457d491bf1f3989ea2cf58f20b0ff4863a668a7 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Fri, 16 May 2014 17:05:49 -0700 Subject: [PATCH] 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 --- src/com/android/launcher3/LauncherClings.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/com/android/launcher3/LauncherClings.java b/src/com/android/launcher3/LauncherClings.java index a2cce1ab8..6d84e2be7 100644 --- a/src/com/android/launcher3/LauncherClings.java +++ b/src/com/android/launcher3/LauncherClings.java @@ -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(); -- 2.11.0