Skip to content

Commit

Permalink
DerpLauncher: Restart on disabling overview action chips
Browse files Browse the repository at this point in the history
Change-Id: I045313b1828b8967701e87f9bbadb99d9e9aad50
Signed-off-by: Mohammad Hasan Keramat J <[email protected]>
  • Loading branch information
iKeramat authored and NurKeinNeid committed Apr 10, 2024
1 parent 9c20730 commit e32f7af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/com/android/launcher3/Utilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
10 changes: 9 additions & 1 deletion src/com/android/launcher3/settings/SettingsRecents.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit e32f7af

Please sign in to comment.