1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-05 15:52:47 +02:00

Tell the system not to defer this notification

Even if this is not necessary according to https://developer.android.com/guide/components/foreground-services#notification-immediate
This commit is contained in:
Benoit Marty
2022-12-06 17:33:53 +01:00
committed by Benoit Marty
parent ea03168769
commit 6bffe65053

View File

@@ -358,6 +358,8 @@ class NotificationUtils @Inject constructor(
builder.priority = NotificationCompat.PRIORITY_HIGH
builder.setFullScreenIntent(contentPendingIntent, true)
}
// Tell the system not to defer this notification
builder.foregroundServiceBehavior = NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE
return builder.build()
}