mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-30 05:31:34 +01:00
Don't leak activity context to shortcut badger.
// FREEBIE
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user