diff options
author | Christian S <christian@pix-art.de> | 2016-03-27 20:16:11 +0200 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2016-03-27 20:16:11 +0200 |
commit | 27db1886d5726c9b9329f571cd1b7f287d14507b (patch) | |
tree | 5098add1f32e5922a19355004c22efa502d6ded8 | |
parent | 2b32a82a13d5f9975417eff0571fa2468b047e97 (diff) |
fixed bug in ShortcutBadger
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 4 |
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; } |