mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-05 20:37:10 +01:00
creating a new constant for Email field of third party intents
This commit is contained in:
parent
7c6ed3504c
commit
05f239293b
@ -185,7 +185,7 @@ class EditContactActivity : ContactActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
val email = intent.getStringExtra("email")
|
||||
val email = intent.getStringExtra(KEY_EMAIL)
|
||||
if (email != null) {
|
||||
val newEmail = Email(email, DEFAULT_EMAIL_TYPE, "")
|
||||
contact!!.emails.add(newEmail)
|
||||
|
@ -30,6 +30,7 @@ const val REQUEST_CODE_SET_DEFAULT_DIALER = 1
|
||||
// extras used at third party intents
|
||||
const val KEY_PHONE = "phone"
|
||||
const val KEY_NAME = "name"
|
||||
const val KEY_EMAIL = "email"
|
||||
|
||||
const val LOCATION_CONTACTS_TAB = 0
|
||||
const val LOCATION_FAVORITES_TAB = 1
|
||||
|
Loading…
Reference in New Issue
Block a user