NotificationCompat.BigTextStyle Content disappears on new notification

后端 未结 1 1497
渐次进展
渐次进展 2021-01-18 00:55
    String ns = Context.NOTIFICATION_SERVICE;
        NotificationManager mNotificationManager = (NotificationManager) this.getSystemService(ns);
        int icon =          


        
相关标签:
1条回答
  • 2021-01-18 01:52

    Android only displays one expanded notification by default. Your notification doesn't lose its content, it just gets compressed and only shows the normal one-line content. But it seems that you don't specify this, therefore the compressed notification is empty.

    You may use setContentTitle() and setContentText() to set the one-line texts.

    0 讨论(0)
提交回复
热议问题