diff --git a/framework/assets/js/contact.js b/framework/assets/js/contact.js index d24885da..96f948cd 100644 --- a/framework/assets/js/contact.js +++ b/framework/assets/js/contact.js @@ -111,8 +111,8 @@ Contacts.prototype.create = function(properties) { var ContactFindOptions = function(filter, multiple, limit, updatedSince) { this.filter = filter || ''; - this.multiple = multiple || true; - this.limit = limit || Number.MAX_VALUE; + this.multiple = multiple || false; + this.limit = limit || 1; this.updatedSince = updatedSince || ''; }; diff --git a/framework/src/com/phonegap/ContactAccessorSdk3_4.java b/framework/src/com/phonegap/ContactAccessorSdk3_4.java index 879902c3..c77d8396 100644 --- a/framework/src/com/phonegap/ContactAccessorSdk3_4.java +++ b/framework/src/com/phonegap/ContactAccessorSdk3_4.java @@ -82,8 +82,8 @@ public class ContactAccessorSdk3_4 extends ContactAccessor { @Override public JSONArray search(JSONArray filter, JSONObject options) { String searchTerm = ""; - int limit = Integer.MAX_VALUE; - boolean multiple = true; + int limit = 1; + boolean multiple = false; try { searchTerm = options.getString("filter"); if (searchTerm.length()==0) { diff --git a/framework/src/com/phonegap/ContactAccessorSdk5.java b/framework/src/com/phonegap/ContactAccessorSdk5.java index 933a8b43..6ac156dd 100644 --- a/framework/src/com/phonegap/ContactAccessorSdk5.java +++ b/framework/src/com/phonegap/ContactAccessorSdk5.java @@ -114,8 +114,8 @@ public class ContactAccessorSdk5 extends ContactAccessor { // Get the find options String searchTerm = ""; - int limit = Integer.MAX_VALUE; - boolean multiple = true; + int limit = 1; + boolean multiple = false; try { searchTerm = options.getString("filter"); if (searchTerm.length()==0) {