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

Commit f55a1277 authored by Geoffrey Pitsch's avatar Geoffrey Pitsch Committed by android-build-merger
Browse files

Merge "Re-enable throw when notifications posted can't find channel" into oc-dev am: 1af29287

am: 30d90c8f

Change-Id: I5ba3d347e1a385e85cd047695acc377248f3ab6b
parents fd79fd36 30d90c8f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ import android.media.AudioManagerInternal;
import android.media.IRingtonePlayer;
import android.net.Uri;
import android.os.Binder;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
@@ -3126,8 +3127,9 @@ public class NotificationManagerService extends SystemService {
                    + ", incomingUserId=" + incomingUserId
                    + ", notificationUid=" + notificationUid
                    + ", notification=" + notification;
            // STOPSHIP TODO: should throw instead of logging.
            // throw new IllegalArgumentException(noChannelStr);
            if (Build.IS_DEBUGGABLE) {
                throw new IllegalArgumentException(noChannelStr);
            }
            Log.e(TAG, noChannelStr);
            return;
        }