Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d4564b7 authored by Beverly's avatar Beverly
Browse files

Don't show dev warning toast if notifs for app off

Test: manual
Change-Id: I4e8bf68a6e9a35fa53112758d85fb8b6836f61c4
Fixes: 66882976
parent c5fdecaa
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3956,9 +3956,14 @@ public class NotificationManagerService extends SystemService {
                    + ", notificationUid=" + notificationUid
                    + ", notification=" + notification;
            Log.e(TAG, noChannelStr);
            boolean appNotificationsOff = mRankingHelper.getImportance(pkg, notificationUid)
                    == NotificationManager.IMPORTANCE_NONE;

            if (!appNotificationsOff) {
                doChannelWarningToast("Developer warning for package \"" + pkg + "\"\n" +
                        "Failed to post notification on channel \"" + channelId + "\"\n" +
                        "See log for more details");
            }
            return;
        }