mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-07-03 20:46:09 +01:00
Avoid requireActivity() on background thread when deleting conversations.
This commit is contained in:
+1
-1
@@ -1251,7 +1251,7 @@ public class ConversationListFragment extends MainFragment implements Conversati
|
||||
protected Void doInBackground(Void... params) {
|
||||
Log.d(TAG, "[handleDelete] Deleting " + selectedConversations.size() + " chats");
|
||||
SignalDatabase.threads().deleteConversations(selectedConversations, true);
|
||||
AppDependencies.getMessageNotifier().updateNotification(requireActivity());
|
||||
AppDependencies.getMessageNotifier().updateNotification(AppDependencies.getApplication());
|
||||
Log.d(TAG, "[handleDelete] Delete complete");
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user