Skip to content

Commit 2ccaf0a

Browse files
committed
Code format
1 parent 9d4c640 commit 2ccaf0a

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

extendedSample/src/main/java/info/mqtt/android/extsample/internal/Notify.kt

+4-14
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,8 @@ internal object Notify {
5252

5353
//build the notification
5454
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)
6257
val notification = notificationCompat.build()
6358

6459
notificationManager.notify(MessageID, notification)
@@ -93,13 +88,8 @@ internal object Notify {
9388

9489
//build the notification
9590
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)
10393
return notificationCompat.build()
10494
}
10595

0 commit comments

Comments
 (0)