creating a new constant for Email field of third party intents

This commit is contained in:
tibbi 2019-12-05 12:18:09 +01:00
parent 7c6ed3504c
commit 05f239293b
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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