diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt index 0ad317443..5b5bc7277 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt @@ -538,6 +538,7 @@ fun Activity.launchViewContactIntent(uri: Uri) { launchActivityIntent(this) } } + fun BaseSimpleActivity.launchCallIntent(recipient: String, handle: PhoneAccountHandle? = null) { handlePermission(PERMISSION_CALL_PHONE) { val action = if (it) Intent.ACTION_CALL else Intent.ACTION_DIAL