Merge "Re-enable throw when notifications posted can't find channel" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1af2928767
@@ -90,6 +90,7 @@ import android.media.AudioManagerInternal;
|
|||||||
import android.media.IRingtonePlayer;
|
import android.media.IRingtonePlayer;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Binder;
|
import android.os.Binder;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Environment;
|
import android.os.Environment;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
@@ -3126,8 +3127,9 @@ public class NotificationManagerService extends SystemService {
|
|||||||
+ ", incomingUserId=" + incomingUserId
|
+ ", incomingUserId=" + incomingUserId
|
||||||
+ ", notificationUid=" + notificationUid
|
+ ", notificationUid=" + notificationUid
|
||||||
+ ", notification=" + notification;
|
+ ", notification=" + notification;
|
||||||
// STOPSHIP TODO: should throw instead of logging.
|
if (Build.IS_DEBUGGABLE) {
|
||||||
// throw new IllegalArgumentException(noChannelStr);
|
throw new IllegalArgumentException(noChannelStr);
|
||||||
|
}
|
||||||
Log.e(TAG, noChannelStr);
|
Log.e(TAG, noChannelStr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user