Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Saving a contact with an email type of work sets it to home

  • Loading branch information...
commit 01f062d2bafc7c1ece647da0dd4b8a9bed2dda98 1 parent 2a42c46
Simon MacDonald macdonst authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  framework/src/org/apache/cordova/
2  framework/src/org/apache/cordova/
@@ -1501,7 +1501,7 @@ private void insertEmail(ArrayList<ContentProviderOperation> ops,
.withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0)
.withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE)
.withValue(ContactsContract.CommonDataKinds.Email.DATA, getJsonString(email, "value"))
- .withValue(ContactsContract.CommonDataKinds.Email.TYPE, getPhoneType(getJsonString(email, "type")))
+ .withValue(ContactsContract.CommonDataKinds.Email.TYPE, getContactType(getJsonString(email, "type")))
Please sign in to comment.
Something went wrong with that request. Please try again.