mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-14 10:30:46 +01:00
fix: shortcut using wrong number
This commit is contained in:
parent
8fa124680a
commit
f172826116
@ -247,7 +247,7 @@ class ContactsAdapter(
|
||||
activity.handlePermission(PERMISSION_CALL_PHONE) { hasPermission ->
|
||||
val action = if (hasPermission) Intent.ACTION_CALL else Intent.ACTION_DIAL
|
||||
val intent = Intent(action).apply {
|
||||
data = Uri.fromParts("tel", contact.phoneNumbers.first().normalizedNumber, null)
|
||||
data = Uri.fromParts("tel", getSelectedPhoneNumber(), null)
|
||||
}
|
||||
|
||||
val shortcut = ShortcutInfo.Builder(activity, contact.hashCode().toString())
|
||||
|
Loading…
x
Reference in New Issue
Block a user