Clear selection on show/hide snoozed messages

This commit is contained in:
M66B 2019-04-21 07:56:43 +02:00
parent 8810639c64
commit 146088170a
1 changed files with 2 additions and 0 deletions

View File

@ -2107,6 +2107,8 @@ public class FragmentMessages extends FragmentBase {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean snoozed = prefs.getBoolean("snoozed", false); boolean snoozed = prefs.getBoolean("snoozed", false);
prefs.edit().putBoolean("snoozed", !snoozed).apply(); prefs.edit().putBoolean("snoozed", !snoozed).apply();
if (selectionTracker != null)
selectionTracker.clearSelection();
loadMessages(); loadMessages();
} }