Show notice if mobile call is attempted to contact with no TEL URI
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user