summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherClings.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-05-16 17:05:49 -0700
committerAdam Cohen <adamcohen@google.com>2014-05-16 18:26:15 -0700
commit8457d491bf1f3989ea2cf58f20b0ff4863a668a7 (patch)
tree585bbb6eea3e5eab99be4346ffb3c35edc9a260b /src/com/android/launcher3/LauncherClings.java
parent57884c7ee2835df52913a87ad90e83293c3157d3 (diff)
downloadandroid_packages_apps_Trebuchet-8457d491bf1f3989ea2cf58f20b0ff4863a668a7.tar.gz
android_packages_apps_Trebuchet-8457d491bf1f3989ea2cf58f20b0ff4863a668a7.tar.bz2
android_packages_apps_Trebuchet-8457d491bf1f3989ea2cf58f20b0ff4863a668a7.zip
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
Diffstat (limited to 'src/com/android/launcher3/LauncherClings.java')
-rw-r--r--src/com/android/launcher3/LauncherClings.java7
1 files 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();