File tree 1 file changed +4
-14
lines changed
extendedSample/src/main/java/info/mqtt/android/extsample/internal
1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,8 @@ internal object Notify {
52
52
53
53
// build the notification
54
54
val notificationCompat = NotificationCompat .Builder (context, channelId)
55
- notificationCompat.setAutoCancel(true )
56
- .setContentTitle(contentTitle)
57
- .setContentIntent(pendingIntent)
58
- .setContentText(messageString)
59
- .setTicker(ticker)
60
- .setWhen(`when `)
61
- .setSmallIcon(R .mipmap.ic_launcher)
55
+ notificationCompat.setAutoCancel(true ).setContentTitle(contentTitle).setContentIntent(pendingIntent).setContentText(messageString)
56
+ .setTicker(ticker).setWhen(`when `).setSmallIcon(R .mipmap.ic_launcher)
62
57
val notification = notificationCompat.build()
63
58
64
59
notificationManager.notify(MessageID , notification)
@@ -93,13 +88,8 @@ internal object Notify {
93
88
94
89
// build the notification
95
90
val notificationCompat = NotificationCompat .Builder (context, channelId)
96
- notificationCompat.setAutoCancel(true )
97
- .setContentTitle(contentTitle)
98
- .setContentIntent(pendingIntent)
99
- .setContentText(connectionName)
100
- .setTicker(ticker)
101
- .setWhen(`when `)
102
- .setSmallIcon(R .mipmap.ic_launcher)
91
+ notificationCompat.setAutoCancel(true ).setContentTitle(contentTitle).setContentIntent(pendingIntent).setContentText(connectionName)
92
+ .setTicker(ticker).setWhen(`when `).setSmallIcon(R .mipmap.ic_launcher)
103
93
return notificationCompat.build()
104
94
}
105
95
You can’t perform that action at this time.
0 commit comments