From 6053b8007ed22fba6a62a9238aad6d0a42229fae Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 15 Aug 2013 15:44:26 -0700 Subject: [PATCH] Hide WeightWatcher by default. Change-Id: I722b5f78311234860c4c0ac227cfb0115ffc8e01 --- src/com/android/launcher3/Launcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 1f4c120426..8fa2d35a30 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -192,6 +192,7 @@ public class Launcher extends Activity "com.android.launcher.toolbar_voice_search_icon"; public static final String SHOW_WEIGHT_WATCHER = "debug.show_mem"; + public static final boolean SHOW_WEIGHT_WATCHER_DEFAULT = false; /** The different states that Launcher can be in. */ private enum State { NONE, WORKSPACE, APPS_CUSTOMIZE, APPS_CUSTOMIZE_SPRING_LOADED }; @@ -3537,7 +3538,7 @@ public class Launcher extends Activity private boolean shouldShowWeightWatcher() { String spKey = LauncherAppState.getSharedPreferencesKey(); SharedPreferences sp = getSharedPreferences(spKey, Context.MODE_PRIVATE); - boolean show = sp.getBoolean(SHOW_WEIGHT_WATCHER, true); + boolean show = sp.getBoolean(SHOW_WEIGHT_WATCHER, SHOW_WEIGHT_WATCHER_DEFAULT); return show; }