Skip to content
Browse files

CB-1969: Searching for emails in Contacts throws an exception always …

…errors out
  • Loading branch information...
1 parent 7d5249e commit 9a9d36e9d98a1f4ecfad962be3ed76b7aef8aa1d @macdonst macdonst committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 framework/src/org/apache/cordova/ContactAccessorSdk5.java
View
1 framework/src/org/apache/cordova/ContactAccessorSdk5.java
@@ -219,6 +219,7 @@ public JSONArray search(JSONArray fields, JSONObject options) {
columnsToFetch.add(ContactsContract.CommonDataKinds.Phone.TYPE);
}
if (isRequired("emails", populate)) {
+ columnsToFetch.add(ContactsContract.CommonDataKinds.Email._ID);
columnsToFetch.add(ContactsContract.CommonDataKinds.Email.DATA);
columnsToFetch.add(ContactsContract.CommonDataKinds.Email.TYPE);
}

0 comments on commit 9a9d36e

Please sign in to comment.
Something went wrong with that request. Please try again.