make sure we handle phone number at some intents properly on older devices too
This commit is contained in:
parent
4cbe122672
commit
764de9c858
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue