public static void applyCountOrThrow(Context context, int badgeCount) throws ShortcutBadgeException {
        if (sShortcutBadger == null) {
            boolean launcherReady = initBadger(context);

            if (!launcherReady)
                throw new ShortcutBadgeException("No default launcher available");
        }

        try {
            sShortcutBadger.executeBadge(context, sComponentName, badgeCount);
        } catch (Exception e) {
            Log.e(LOG_TAG, "Unable to execute badge  ==" + e.toString());
            throw new ShortcutBadgeException("Unable to execute badge", e);
        }
    }
Tries to update the notification count, throw a {@link ShortcutBadgeException} if it fails

@param context    Caller context
@param badgeCount Desired badge count
app/src/main/java/home/smart/fly/animations/widget/clearbadge/ShortcutBadger.java