Made better collapsed notification with status.

This commit is contained in:
Revertron 2022-11-19 22:42:22 +01:00
parent aa94ccad26
commit 0c4d9c6be4

View file

@ -91,8 +91,8 @@ fun createServiceNotification(context: Context, state: State): Notification {
}
return NotificationCompat.Builder(context, channelId)
.setContentTitle(context.getText(R.string.app_name))
.setContentText(text)
.setShowWhen(false)
.setContentTitle(text)
.setSmallIcon(R.drawable.ic_tile_icon)
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_MIN)