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:
committed by
Benoit Marty
parent
ea03168769
commit
6bffe65053
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user