commit | 6089bd59a4aabd844f32e2e4b4762131f5437023 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Thu May 02 19:03:23 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu May 02 19:03:23 2019 +0000 |
tree | f1f0bd33a5304e8eed2f6fec6a35ef8d5b87d7b8 | |
parent | d61cd63b62d57d96c22cb78d25a51763d705a46e [diff] | |
parent | 6bf51d38c38a3b66acd0991234e4d9754ea2de30 [diff] |
Merge "Add a prefix to visited tab preferences keys" into ub-launcher3-qt-dev
diff --git a/src/com/android/customization/module/CustomizationPreferences.java b/src/com/android/customization/module/CustomizationPreferences.java index 0c09826..dc7662c 100644 --- a/src/com/android/customization/module/CustomizationPreferences.java +++ b/src/com/android/customization/module/CustomizationPreferences.java
@@ -20,6 +20,7 @@ public interface CustomizationPreferences extends WallpaperPreferences { String KEY_CUSTOM_THEME= "themepicker_custom_theme"; + String KEY_VISITED_PREFIX = "themepicker_visited_"; String getSerializedCustomTheme();
diff --git a/src/com/android/customization/module/DefaultCustomizationPreferences.java b/src/com/android/customization/module/DefaultCustomizationPreferences.java index cd3cc2d..202ff49 100644 --- a/src/com/android/customization/module/DefaultCustomizationPreferences.java +++ b/src/com/android/customization/module/DefaultCustomizationPreferences.java
@@ -39,11 +39,11 @@ @Override public boolean getTabVisited(String id) { - return mSharedPrefs.getBoolean(id, false); + return mSharedPrefs.getBoolean(KEY_VISITED_PREFIX + id, false); } @Override public void setTabVisited(String id) { - mSharedPrefs.edit().putBoolean(id, true).apply(); + mSharedPrefs.edit().putBoolean(KEY_VISITED_PREFIX + id, true).apply(); } }