mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
catching an exceptions thrown if no app can handle Dialpad
This commit is contained in:
@ -438,7 +438,11 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||
|
||||
private fun launchDialpad() {
|
||||
Intent(Intent.ACTION_DIAL).apply {
|
||||
startActivity(this)
|
||||
if (resolveActivity(packageManager) != null) {
|
||||
startActivity(this)
|
||||
} else {
|
||||
toast(R.string.no_app_found)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user