我的Android8.0以上手机,我能够收到通知,但是我自定义修改的通知栏内容我更改了也没变,这个需要怎么处理呀
```
//send msg to MainActivity
private void processCustomMessage(Context context, Bundle bundle) {
String channelID = "1";
String channelName = "channel_name";
// 获得系统推送的自定义消息
String message = bundle.getString(JPushInterface.EXTRA_ALERT);
NotificationManager notificationManager = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE);
//适配安卓8.0的消息渠道
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
NotificationChannel channel = new NotificationChannel(channelID, channelName, NotificationManager.IMPORTANCE_HIGH);
notificationManager.createNotificationChannel(channel);
}
NotificationCompat.Builder notification =
new NotificationCompat.Builder(context, channelID);
notification.setAutoCancel(true)
.setContentText("我是内容")
.setContentTitle("我是Title")
.setSmallIcon(R.drawable.icon_audio)
.setDefaults(Notification.DEFAULT_ALL);
notificationManager.notify((int) (System.currentTimeMillis() / 1000), notification.build());
}