diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 321036fe..e4672527 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -24,7 +24,7 @@
-
+
diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt
index 30403c2f..01e71248 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt
@@ -662,7 +662,7 @@ class BaresipService: Service() {
}
@Suppress("unused")
- @SuppressLint("UnspecifiedImmutableFlag", "DiscouragedApi")
+ @SuppressLint("UnspecifiedImmutableFlag", "DiscouragedApi", "FullScreenIntentPolicy")
@Keep
fun uaEvent(event: String, uap: Long, callp: Long) {
@@ -912,7 +912,8 @@ class BaresipService: Service() {
.setShowWhen(true)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setPriority(NotificationCompat.PRIORITY_MAX)
- .setFullScreenIntent(pi, true)
+ if (VERSION.SDK_INT < 34 || nm.canUseFullScreenIntent())
+ nb.setFullScreenIntent(pi, true)
val answerIntent = Intent(applicationContext, MainActivity::class.java)
.putExtra("action", "call answer")
.putExtra("callp", callp)