update notifications of visible thread in bg, fixes #720

This commit is contained in:
B. Petersen
2019-02-14 18:17:08 +01:00
parent a5ccd9da79
commit 40bfa15dea
@@ -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<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
updatePendingNotifications(context);
return null;
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}