Commit 418792bc authored by Bartek Fabiszewski's avatar Bartek Fabiszewski
Browse files

Foreground service notification should not be denied, guard anyway

parent a73a0ec6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -94,7 +94,11 @@ class NotificationHelper {
        PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, flags);
        builder.setContentIntent(resultPendingIntent);
        Notification notification = builder.build();
        try {
            notificationManager.notify(notificationId, notification);
        } catch (SecurityException e) {
            if (Logger.DEBUG) { Log.d(TAG, "[notification not allowed: " + e + "]"); }
        }
        return notification;
    }