Clear selection on show/hide snoozed messages

pull/155/head
M66B 6 years ago
parent 8810639c64
commit 146088170a

@ -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();
} }

Loading…
Cancel
Save