mirror of
https://github.com/yggdrasil-network/yggdrasil-android.git
synced 2025-04-28 06:05:08 +03:00
Made better collapsed notification with status. (#34)
This commit is contained in:
parent
aa94ccad26
commit
b472c7283f
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ fun createServiceNotification(context: Context, state: State): Notification {
|
||||||
}
|
}
|
||||||
|
|
||||||
return NotificationCompat.Builder(context, channelId)
|
return NotificationCompat.Builder(context, channelId)
|
||||||
.setContentTitle(context.getText(R.string.app_name))
|
.setShowWhen(false)
|
||||||
.setContentText(text)
|
.setContentTitle(text)
|
||||||
.setSmallIcon(R.drawable.ic_tile_icon)
|
.setSmallIcon(R.drawable.ic_tile_icon)
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue