creating a new constant for Email field of third party intents
This commit is contained in:
parent
7c6ed3504c
commit
05f239293b
2 changed files with 2 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ class EditContactActivity : ContactActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val email = intent.getStringExtra("email")
|
val email = intent.getStringExtra(KEY_EMAIL)
|
||||||
if (email != null) {
|
if (email != null) {
|
||||||
val newEmail = Email(email, DEFAULT_EMAIL_TYPE, "")
|
val newEmail = Email(email, DEFAULT_EMAIL_TYPE, "")
|
||||||
contact!!.emails.add(newEmail)
|
contact!!.emails.add(newEmail)
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ const val REQUEST_CODE_SET_DEFAULT_DIALER = 1
|
||||||
// extras used at third party intents
|
// extras used at third party intents
|
||||||
const val KEY_PHONE = "phone"
|
const val KEY_PHONE = "phone"
|
||||||
const val KEY_NAME = "name"
|
const val KEY_NAME = "name"
|
||||||
|
const val KEY_EMAIL = "email"
|
||||||
|
|
||||||
const val LOCATION_CONTACTS_TAB = 0
|
const val LOCATION_CONTACTS_TAB = 0
|
||||||
const val LOCATION_FAVORITES_TAB = 1
|
const val LOCATION_FAVORITES_TAB = 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue