From 548a597843845b6f3ee43d5cb49d3bf3f583e2c5 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 11 Sep 2023 15:59:12 +0200 Subject: [PATCH] Added missing androidx.media dependency --- app/build.gradle | 6 +++--- .../java/org/linphone/notifications/NotificationsManager.kt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 97ff5f825..eee6d8f1b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -69,13 +69,13 @@ android { dependencies { implementation "androidx.annotation:annotation:1.7.0" - implementation 'androidx.core:core-ktx:1.10.1' implementation 'androidx.appcompat:appcompat:1.7.0-alpha03' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.core:core-ktx:1.10.1' + implementation "androidx.core:core-telecom:1.0.0-alpha01" + implementation 'androidx.media:media:1.6.0' implementation 'androidx.recyclerview:recyclerview:1.3.1' implementation "androidx.slidingpanelayout:slidingpanelayout:1.2.0" - - implementation "androidx.core:core-telecom:1.0.0-alpha01" implementation 'androidx.window:window:1.1.0' def nav_version = "2.7.2" diff --git a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt index 989fcb8e2..298d3fbf2 100644 --- a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt +++ b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt @@ -193,10 +193,10 @@ class NotificationsManager @MainThread constructor(private val context: Context) val notifiable = getNotifiableForCall( coreContext.core.currentCall ?: coreContext.core.calls.first() ) - val notif = notificationManager.activeNotifications.find { + val notification = notificationManager.activeNotifications.find { it.id == notifiable.notificationId } - notif ?: return + notification ?: return val service = coreService if (service != null) { @@ -205,7 +205,7 @@ class NotificationsManager @MainThread constructor(private val context: Context) try { service.startForeground( notifiable.notificationId, - notif.notification, + notification.notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE or ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA