From 47e07b4542b53ca818cb9ed32ea5e0547bb893d0 Mon Sep 17 00:00:00 2001 From: Pierre Nicolas <pierre.nicolas@savoirfairelinux.com> Date: Wed, 31 May 2023 15:47:16 -0400 Subject: [PATCH] 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 --- .../app/src/main/java/cx/ring/services/CallServiceImpl.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jami-android/app/src/main/java/cx/ring/services/CallServiceImpl.kt b/jami-android/app/src/main/java/cx/ring/services/CallServiceImpl.kt index 06d8ea023..40e92f33b 100644 --- a/jami-android/app/src/main/java/cx/ring/services/CallServiceImpl.kt +++ b/jami-android/app/src/main/java/cx/ring/services/CallServiceImpl.kt @@ -50,11 +50,14 @@ class CallServiceImpl(val mContext: Context, executor: ScheduledExecutorService, mContext.getSystemService<TelecomManager>()?.let { telecomService -> 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 (!telecomService.isOutgoingCallPermitted(accountHandle)) return CALL_DISALLOWED - } + }*/ // Build call parameters val params = Bundle().apply { -- GitLab