Confirm all links

This commit is contained in:
M66B 2022-11-05 07:56:01 +01:00
parent 313582be8f
commit a31523d2c1
1 changed files with 8 additions and 2 deletions

View File

@ -5821,8 +5821,14 @@ public class FragmentMessages extends FragmentBase
private void onMenuConfirmLinks() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean compact = !prefs.getBoolean("confirm_links", true);
prefs.edit().putBoolean("confirm_links", compact).apply();
boolean confirm_links = !prefs.getBoolean("confirm_links", true);
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("confirm_links", confirm_links);
if (confirm_links)
for (String key : prefs.getAll().keySet())
if (key.endsWith(".confirm_link"))
editor.remove(key);
editor.apply();
invalidateOptionsMenu();
}