Update target SDK to 34.

This commit is contained in:
Cody Henthorne
2024-07-30 14:08:23 -04:00
committed by mtang-signal
parent 6424c6bc99
commit dc7208922c
10 changed files with 38 additions and 13 deletions

View File

@@ -274,7 +274,7 @@ class ActiveCallManager(
@get:RequiresApi(30)
override val serviceType: Int
get() = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
get() = ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
private var hangUpRtcOnDeviceCallAnswered: PhoneStateListener? = null
private var notification: Notification? = null

View File

@@ -315,7 +315,7 @@ public final class WebRtcCallService extends Service implements SignalAudioManag
}
if (Build.VERSION.SDK_INT >= 30) {
startForeground(notificationId, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA | ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE);
startForeground(notificationId, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC);
} else {
startForeground(notificationId, notification);
}