diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-11-18 15:26:28 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-11-18 15:26:28 +0100 |
commit | 66087cb3608ec70fd04248591b8531a0f4705a2f (patch) | |
tree | 731ebdaa368e14c6386193cc6e643577fafa035d /src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | 1122e084a0dc6327ea2ab75072211062e3077311 (diff) |
put error notification into notification service
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 2ff29b196..d181fac33 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -204,8 +204,7 @@ public class XmppConnectionService extends Service { scheduleWakeupCall((int) (next * 1.2), false); } } - UIHelper.showErrorNotification(getApplicationContext(), - getAccounts()); + getNotificationService().updateErrorNotification(); } }; private Integer accountChangedListenerCount = 0; @@ -1071,7 +1070,7 @@ public class XmppConnectionService extends Service { databaseBackend.updateAccount(account); reconnectAccount(account, false); updateAccountUi(); - UIHelper.showErrorNotification(getApplicationContext(), getAccounts()); + getNotificationService().updateErrorNotification(); } public void deleteAccount(Account account) { @@ -1092,7 +1091,7 @@ public class XmppConnectionService extends Service { databaseBackend.deleteAccount(account); this.accounts.remove(account); updateAccountUi(); - UIHelper.showErrorNotification(getApplicationContext(), getAccounts()); + getNotificationService().updateErrorNotification(); } } |