Added missing androidx.media dependency

This commit is contained in:
Sylvain Berfini 2023-09-11 15:59:12 +02:00
parent f6479826ca
commit 548a597843
2 changed files with 6 additions and 6 deletions

View file

@ -69,13 +69,13 @@ android {
dependencies { dependencies {
implementation "androidx.annotation:annotation:1.7.0" 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.appcompat:appcompat:1.7.0-alpha03'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 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.recyclerview:recyclerview:1.3.1'
implementation "androidx.slidingpanelayout:slidingpanelayout:1.2.0" implementation "androidx.slidingpanelayout:slidingpanelayout:1.2.0"
implementation "androidx.core:core-telecom:1.0.0-alpha01"
implementation 'androidx.window:window:1.1.0' implementation 'androidx.window:window:1.1.0'
def nav_version = "2.7.2" def nav_version = "2.7.2"

View file

@ -193,10 +193,10 @@ class NotificationsManager @MainThread constructor(private val context: Context)
val notifiable = getNotifiableForCall( val notifiable = getNotifiableForCall(
coreContext.core.currentCall ?: coreContext.core.calls.first() coreContext.core.currentCall ?: coreContext.core.calls.first()
) )
val notif = notificationManager.activeNotifications.find { val notification = notificationManager.activeNotifications.find {
it.id == notifiable.notificationId it.id == notifiable.notificationId
} }
notif ?: return notification ?: return
val service = coreService val service = coreService
if (service != null) { if (service != null) {
@ -205,7 +205,7 @@ class NotificationsManager @MainThread constructor(private val context: Context)
try { try {
service.startForeground( service.startForeground(
notifiable.notificationId, notifiable.notificationId,
notif.notification, notification.notification,
ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL
or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
or ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA or ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA