Merge "Re-enable throw when notifications posted can't find channel" into oc-dev am: 1af2928767
am: 30d90c8fc0
Change-Id: I5ba3d347e1a385e85cd047695acc377248f3ab6b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user