mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix notification to include text message even when not expanded
This commit is contained in:
parent
d6f759cabc
commit
d290555aba
1 changed files with 3 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ class MeshServiceNotifications(
|
|||
fun createServiceStateNotification(summaryString: String): Notification {
|
||||
val builder = commonBuilder(channelId)
|
||||
with(builder) {
|
||||
setPriority(NotificationCompat.PRIORITY_MIN)
|
||||
priority = NotificationCompat.PRIORITY_MIN
|
||||
setCategory(Notification.CATEGORY_SERVICE)
|
||||
setOngoing(true)
|
||||
setContentTitle(summaryString) // leave this off for now so our notification looks smaller
|
||||
|
|
@ -163,10 +163,11 @@ class MeshServiceNotifications(
|
|||
fun createMessageNotifcation(name: String, message: String): Notification {
|
||||
val builder = commonBuilder(messageChannelId)
|
||||
with(builder) {
|
||||
setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||
priority = NotificationCompat.PRIORITY_DEFAULT
|
||||
setCategory(Notification.CATEGORY_MESSAGE)
|
||||
setAutoCancel(true)
|
||||
setContentTitle(name)
|
||||
setContentText(message)
|
||||
setStyle(
|
||||
NotificationCompat.BigTextStyle()
|
||||
.bigText(message),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue