mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-02-04 21:29:20 +00:00
Don't register app with telecom if not available
This commit is contained in:
parent
7277e420b3
commit
f3858459b2
1 changed files with 7 additions and 5 deletions
|
|
@ -76,11 +76,13 @@ class TelecomManager
|
|||
Log.i(
|
||||
"$TAG android.software.telecom feature is [${if (hasTelecomFeature) "available" else "not available"}]"
|
||||
)
|
||||
try {
|
||||
callsManager.registerAppWithTelecom(CallsManager.CAPABILITY_SUPPORTS_VIDEO_CALLING)
|
||||
Log.i("$TAG App has been registered with Telecom")
|
||||
} catch (e: Exception) {
|
||||
Log.e("$TAG Can't init TelecomManager: $e")
|
||||
if (hasTelecomFeature) {
|
||||
try {
|
||||
callsManager.registerAppWithTelecom(CallsManager.CAPABILITY_SUPPORTS_VIDEO_CALLING)
|
||||
Log.i("$TAG App has been registered with Telecom")
|
||||
} catch (e: Exception) {
|
||||
Log.e("$TAG Can't init TelecomManager: $e")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue