Skip to content
Snippets Groups Projects
Commit 47e07b45 authored by Pierre Nicolas's avatar Pierre Nicolas :joy: Committed by Adrien Béraud
Browse files

call: make call working again

Remove a check always returning false on a certain device (Lenovo Tab P12 Pro Android 12)

GitLab: #1288
Change-Id: I488eb0304da09f477a8f29ce10e09ae92e3ec4ac
parent 645706bf
No related branches found
No related tags found
No related merge requests found
...@@ -50,11 +50,14 @@ class CallServiceImpl(val mContext: Context, executor: ScheduledExecutorService, ...@@ -50,11 +50,14 @@ class CallServiceImpl(val mContext: Context, executor: ScheduledExecutorService,
mContext.getSystemService<TelecomManager>()?.let { telecomService -> mContext.getSystemService<TelecomManager>()?.let { telecomService ->
val accountHandle = JamiApplication.instance!!.androidPhoneAccountHandle val accountHandle = JamiApplication.instance!!.androidPhoneAccountHandle
// Dismiss the call immediately if disallowed // Disabled because of a bug on Lenovo Tab P12 Pro (Android 12) where
// isOutgoingCallPermitted() is always returning false. GitLab: #1288.
// Less optimal but still functional.
/* // Dismiss the call immediately if disallowed
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
if (!telecomService.isOutgoingCallPermitted(accountHandle)) if (!telecomService.isOutgoingCallPermitted(accountHandle))
return CALL_DISALLOWED return CALL_DISALLOWED
} }*/
// Build call parameters // Build call parameters
val params = Bundle().apply { val params = Bundle().apply {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment