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)