diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 2dee56b79c2..e65efac70d9 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -200,6 +200,7 @@ public final class Utilities { public static final String KEY_LENS = "pref_recents_lens"; public static final String KEY_SHORT_PARALLAX = "pref_short_parallax"; public static final String KEY_SINGLE_PAGE_CENTER = "pref_single_page_center"; + public static final String KEY_RECENTS_CHIPS = "pref_recents_chips"; public static final String DESKTOP_SHOW_QUICKSPACE = "pref_show_quickspace"; public static final String KEY_SHOW_ALT_QUICKSPACE = "pref_show_alt_quickspace"; public static final String KEY_SHOW_QUICKSPACE_PSONALITY = "pref_quickspace_psonality"; diff --git a/src/com/android/launcher3/settings/SettingsRecents.java b/src/com/android/launcher3/settings/SettingsRecents.java index aca62037006..07fc11fb7d7 100644 --- a/src/com/android/launcher3/settings/SettingsRecents.java +++ b/src/com/android/launcher3/settings/SettingsRecents.java @@ -100,7 +100,15 @@ protected void onCreate(Bundle savedInstanceState) { } @Override - public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { } + public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { + switch (key) { + case Utilities.KEY_RECENTS_CHIPS: + LauncherAppState.getInstanceNoCreate().setNeedsRestart(); + break; + default: + break; + } + } private boolean startPreference(String fragment, Bundle args, String key) { if (Utilities.ATLEAST_P && getSupportFragmentManager().isStateSaved()) {