mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
@@ -500,7 +500,8 @@ public class MessageNotifier {
|
||||
|
||||
private static void updateBadge(Context context, int count) {
|
||||
try {
|
||||
ShortcutBadger.setBadge(context.getApplicationContext(), count);
|
||||
if (count == 0) ShortcutBadger.removeCount(context);
|
||||
else ShortcutBadger.applyCount(context, count);
|
||||
} catch (Throwable t) {
|
||||
// NOTE :: I don't totally trust this thing, so I'm catching
|
||||
// everything.
|
||||
|
||||
Reference in New Issue
Block a user