mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix bug with dangling notification clear.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user