summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/testing
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-10-20 10:37:15 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-10-20 10:37:15 -0700
commitf912beb2ee4b75af1fe8c710d6948b9737fed531 (patch)
treea8e5ae80d822105c36ff218b739b735a4d5ba9f6 /src/com/android/launcher3/testing
parent38ac73a095c99c18ca31b8d9cd14959a762928b7 (diff)
parentfe3db428abc07d253b816bf70d6820a8339becbc (diff)
downloadandroid_packages_apps_Trebuchet-f912beb2ee4b75af1fe8c710d6948b9737fed531.tar.gz
android_packages_apps_Trebuchet-f912beb2ee4b75af1fe8c710d6948b9737fed531.tar.bz2
android_packages_apps_Trebuchet-f912beb2ee4b75af1fe8c710d6948b9737fed531.zip
resolve merge conflicts of fe3db428ab to ub-launcher3-master.
Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
Diffstat (limited to 'src/com/android/launcher3/testing')
-rw-r--r--src/com/android/launcher3/testing/ToggleWeightWatcher.java5
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;