Don't leak activity context to shortcut badger.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-07-22 12:24:41 -07:00
parent 74ce839bc1
commit 3bac3c6263

View file

@ -504,7 +504,7 @@ public class MessageNotifier {
private static void updateBadge(Context context, int count) {
try {
ShortcutBadger.setBadge(context, count);
ShortcutBadger.setBadge(context.getApplicationContext(), count);
} catch (Throwable t) {
// NOTE :: I don't totally trust this thing, so I'm catching
// everything.