From 27db1886d5726c9b9329f571cd1b7f287d14507b Mon Sep 17 00:00:00 2001 From: Christian S Date: Sun, 27 Mar 2016 20:16:11 +0200 Subject: fixed bug in ShortcutBadger --- .../java/eu/siacs/conversations/services/XmppConnectionService.java | 4 ++-- 1 file 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; } -- cgit v1.2.3