diff options
Diffstat (limited to 'src/com/android/launcher3/testing')
-rw-r--r-- | src/com/android/launcher3/testing/ToggleWeightWatcher.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher3/testing/ToggleWeightWatcher.java b/src/com/android/launcher3/testing/ToggleWeightWatcher.java index 15e55eea6..e08ec3aca 100644 --- a/src/com/android/launcher3/testing/ToggleWeightWatcher.java +++ b/src/com/android/launcher3/testing/ToggleWeightWatcher.java @@ -1,13 +1,13 @@ package com.android.launcher3.testing; import android.app.Activity; -import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherAppState; +import com.android.launcher3.Utilities; import com.android.launcher3.util.TestingUtils; public class ToggleWeightWatcher extends Activity { @@ -16,8 +16,7 @@ public class ToggleWeightWatcher extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - String spKey = LauncherAppState.getSharedPreferencesKey(); - SharedPreferences sp = getSharedPreferences(spKey, Context.MODE_PRIVATE); + SharedPreferences sp = Utilities.getPrefs(this); boolean show = sp.getBoolean(TestingUtils.SHOW_WEIGHT_WATCHER, true); show = !show; |