diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index e3cdb9d78..1fde06bae 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -93,7 +93,13 @@ public class MessageNotifier { public static void updateVisibleChat(Context context, long chatId) { visibleChatId = chatId; if (visibleChatId == NO_VISIBLE_CHAT_ID && pendingNotifications.size() > 0) { - updatePendingNotifications(context); + new AsyncTask() { + @Override + protected Void doInBackground(Void... params) { + updatePendingNotifications(context); + return null; + } + }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } }