Skip to content

Commit 1502f0b

Browse files
committed
Fixed badge unit tests
1 parent a984166 commit 1502f0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

OneSignalSDK/app/src/test/java/com/onesignal/ShadowBadgeCountUpdater.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public class ShadowBadgeCountUpdater {
4040

4141
static void updateCount(int count, Context context) {
4242
lastCount = count;
43-
ShortcutBadger.applyCount(context, count);
43+
try {
44+
ShortcutBadger.applyCount(context, count);
45+
} catch(Throwable t) {}
4446
}
4547
}

0 commit comments

Comments
 (0)