Fix bug with dangling notification clear.

This commit is contained in:
Cody Henthorne
2023-10-10 12:06:10 -04:00
parent 6e5e60173b
commit 2785609481

View File

@@ -133,8 +133,10 @@ public class StoragePreferenceFragment extends ListSummaryPreferenceFragment {
.setTitle(R.string.preferences_storage__are_you_sure_you_want_to_delete_all_message_history)
.setMessage(R.string.preferences_storage__all_message_history_will_be_permanently_removed_this_action_cannot_be_undone)
.setPositiveButton(R.string.preferences_storage__delete_all_now, (d, w) -> {
SignalExecutors.BOUNDED.execute(() -> SignalDatabase.threads().deleteAllConversations());
ApplicationDependencies.getMessageNotifier().updateNotification(requireContext());
SignalExecutors.BOUNDED.execute(() -> {
SignalDatabase.threads().deleteAllConversations();
ApplicationDependencies.getMessageNotifier().updateNotification(requireContext());
});
})
.setNegativeButton(android.R.string.cancel, null)
.show();