aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian S <christian@pix-art.de>2016-03-27 20:16:11 +0200
committerChristian S <christian@pix-art.de>2016-03-27 20:16:11 +0200
commit27db1886d5726c9b9329f571cd1b7f287d14507b (patch)
tree5098add1f32e5922a19355004c22efa502d6ded8
parent2b32a82a13d5f9975417eff0571fa2468b047e97 (diff)
fixed bug in ShortcutBadger
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index a1e7d389b..477b72bab 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -2809,9 +2809,9 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
if (unreadCount != count) {
Log.d(Config.LOGTAG, "update unread count to " + count);
if (count > 0) {
- ShortcutBadger.applyCount(context, count);
+ ShortcutBadger.applyCount(getApplicationContext(), count);
} else {
- ShortcutBadger.removeCount(context);
+ ShortcutBadger.removeCount(getApplicationContext());
}
unreadCount = count;
}