refs #4677 feat:tickets
This commit is contained in:
parent
64ebe19a42
commit
40baca19b5
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue