Made better collapsed notification with status. (#34)

This commit is contained in:
Revertron 2022-11-19 22:53:01 +01:00 committed by GitHub
parent aa94ccad26
commit b472c7283f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)