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

Commit fb55a6ee authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Toast whenever a notification fails to post" into oc-dev am:...

Merge "Merge "Toast whenever a notification fails to post" into oc-dev am: b287e990 am: 15417d0f"
parents 5dc10d6c 6544643c
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3074,9 +3074,17 @@ public class NotificationManagerService extends SystemService {
                    + ", incomingUserId=" + incomingUserId
                    + ", notificationUid=" + notificationUid
                    + ", notification=" + notification;
            // STOPSHIP TODO: should throw instead of logging.
            // STOPSHIP TODO: should throw instead of logging or toasting.
            // throw new IllegalArgumentException(noChannelStr);
            Log.e(TAG, noChannelStr);

            final String noChannelToastStr =
                    "Developer warning for package \"" + pkg + "\"\n" +
                    "Failed to post notification on channel \"" + channelId + "\"\n" +
                    "See log for more details";
            Toast noChannelToast =
                    Toast.makeText(getContext(), noChannelToastStr, Toast.LENGTH_LONG);
            noChannelToast.show();
            return;
        }
        final StatusBarNotification n = new StatusBarNotification(