refs #4677 feat:tickets

This commit is contained in:
Sergio De la torre 2024-04-04 11:54:02 +02:00
parent 64ebe19a42
commit 40baca19b5
1 changed files with 3 additions and 2 deletions

View File

@ -485,7 +485,7 @@ class TicketsFragment(
phones.add(
GeneralItem(
text = "${getString(R.string.Cliente)}:${clientClicked.clientPhone}",
code = clientClicked.clientMobile.toString()
code = clientClicked.clientPhone.toString()
)
)
}
@ -529,10 +529,11 @@ class TicketsFragment(
requireContext(), Manifest.permission.CALL_PHONE
) == PackageManager.PERMISSION_GRANTED
) {
val callIntent = Intent(Intent.ACTION_CALL)
callIntent.data = Uri.parse("tel:${it.code}")
startActivity(callIntent)
return@forEach
}
} else {
ActivityCompat.requestPermissions(