From 8f7ddf81ca286c91da50f3462129ddc9bd9a2e15 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 24 Apr 2025 16:12:55 +0300 Subject: [PATCH] Avoid crash in IncallService bind --- app/src/main/kotlin/com/tutpro/baresip/InCallService.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/InCallService.kt b/app/src/main/kotlin/com/tutpro/baresip/InCallService.kt index fd31969e..f88aa37f 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/InCallService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/InCallService.kt @@ -1,14 +1,16 @@ package com.tutpro.baresip import android.app.Service +import android.content.ContentValues.TAG import android.content.Intent import android.os.IBinder // This is needed in order to allow choosing baresip as default Phone app class InCallService : Service() { - - override fun onBind(intent: Intent): IBinder { - TODO("Return the communication channel to the service.") + override fun onBind(intent: Intent): IBinder? { + // TODO("Return the communication channel to the service.") + Log.d(TAG, "InCallService onBind with intent: ${intent.action}") + return null } } \ No newline at end of file