From e7734b1b603ca6bca575ebf8b4357d56c12c91ae Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 18 May 2026 18:19:34 +0300 Subject: [PATCH] Show notice if mobile call is attempted to contact with no TEL URI --- app/src/main/kotlin/com/tutpro/baresip/ContactsScreen.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/ContactsScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/ContactsScreen.kt index ac758f46..23d53f2a 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/ContactsScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/ContactsScreen.kt @@ -677,7 +677,8 @@ private fun ContactsContent( CustomElements.showSelectItemDialog.value = false } CustomElements.showSelectItemDialog.value = true - } else if (uris.size == 1) { + } + else if (uris.size == 1) { intent.putExtra("peer", uris[0]) handleIntent(ctx, viewModel, intent, "call") navController.navigate("main") { @@ -685,6 +686,11 @@ private fun ContactsContent( launchSingleTop = true } } + else { + alertTitle.value = ctx.getString(R.string.notice) + alertMessage.value = ctx.getString(R.string.no_telephone_number) + showAlert.value = true + } } } thirdText.value = ctx.getString(R.string.send_message)