Bug fixes

This commit is contained in:
DrKLO 2014-07-13 03:02:21 +04:00
parent f00aef78bd
commit 1122ab85d1
3 changed files with 50 additions and 45 deletions

View file

@ -475,7 +475,7 @@ public class NotificationsController {
if (messageObjects.isEmpty()) {
return;
}
notifyCheck = isLast;
boolean added = false;
int oldCount = popupMessages.size();
HashMap<Long, Boolean> settingsCache = new HashMap<Long, Boolean>();
@ -487,9 +487,10 @@ public class NotificationsController {
continue;
}
long dialog_id = messageObject.getDialogId();
if (dialog_id == openned_dialog_id) {
if (dialog_id == openned_dialog_id && ApplicationLoader.isScreenOn) {
continue;
}
added = true;
Boolean value = settingsCache.get(dialog_id);
boolean isChat = (int)dialog_id < 0;
@ -508,6 +509,10 @@ public class NotificationsController {
}
}
if (added) {
notifyCheck = isLast;
}
if (!popupMessages.isEmpty() && oldCount != popupMessages.size()) {
if (ApplicationLoader.mainInterfacePaused || !ApplicationLoader.isScreenOn) {
MessageObject messageObject = messageObjects.get(0);