Commit 686b488a authored by wanglei's avatar wanglei

通知小图标

parent ca631f9d
Pipeline #1083 failed with stages
...@@ -156,7 +156,7 @@ object OpenNotificationsUtil { ...@@ -156,7 +156,7 @@ object OpenNotificationsUtil {
.setCustomContentView(expendView) .setCustomContentView(expendView)
.setCustomBigContentView(contentView) .setCustomBigContentView(contentView)
.setContentIntent(pendingIntent) //设置PendingIntent .setContentIntent(pendingIntent) //设置PendingIntent
.setSmallIcon(R.mipmap.blogo) //设置状态栏内的小图标 .setSmallIcon(R.drawable.ic_logo24) //设置状态栏内的小图标
.setVisibility(NotificationCompat.VISIBILITY_PRIVATE) //设置通知公开可见 .setVisibility(NotificationCompat.VISIBILITY_PRIVATE) //设置通知公开可见
.setOngoing(isOngoing) //设置持续(不消失的常驻通知) .setOngoing(isOngoing) //设置持续(不消失的常驻通知)
.setCategory(category) //设置类别 .setCategory(category) //设置类别
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment