Skip to content

Commit

Permalink
Don't leak activity context to shortcut badger.
Browse files Browse the repository at this point in the history
// FREEBIE
  • Loading branch information
moxie0 committed Jul 22, 2015
1 parent 74ce839 commit 3bac3c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ private static String[] parseBlinkPattern(String blinkPattern, String blinkPatte

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.
Expand Down

0 comments on commit 3bac3c6

Please sign in to comment.