mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-31 07:55:03 +01:00
make sure we handle phone number at some intents properly on older devices too
This commit is contained in:
parent
4cbe122672
commit
764de9c858
@ -139,7 +139,7 @@ class EditContactActivity : ContactActivity() {
|
||||
}
|
||||
|
||||
if (contact!!.id == 0 && intent.extras?.containsKey(KEY_PHONE) == true && (intent.action == Intent.ACTION_INSERT_OR_EDIT || intent.action == Intent.ACTION_INSERT)) {
|
||||
val phoneNumber = intent.getStringExtra(KEY_PHONE)
|
||||
val phoneNumber = intent.extras.get(KEY_PHONE).toString()
|
||||
contact!!.phoneNumbers.add(PhoneNumber(phoneNumber, DEFAULT_PHONE_NUMBER_TYPE))
|
||||
setupPhoneNumbers()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user