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

Commit 7b275f89 authored by Beverly Tai's avatar Beverly Tai Committed by android-build-merger
Browse files

Merge "Don't show dev warning toast if notifs for app off" into pi-dev

am: de2e5ce1

Change-Id: I446b950b06ba3c598852eb9f33470d7d773eaa25
parents 17b3a80e de2e5ce1
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3997,9 +3997,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;
        }