mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
creating a new constant for Email field of third party intents
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user