incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [13/13] git commit: #CB-156
Date Thu, 02 Feb 2012 02:38:22 GMT
#CB-156


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/17bc6533
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/17bc6533
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/17bc6533

Branch: refs/heads/master
Commit: 17bc65339dbe9f3db45a9eda360b8a118dd0d403
Parents: ed9bed9
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Jan 31 18:20:41 2012 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Jan 31 18:20:41 2012 -0800

----------------------------------------------------------------------
 framework/PhoneGap/Commands/Contacts.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/17bc6533/framework/PhoneGap/Commands/Contacts.cs
----------------------------------------------------------------------
diff --git a/framework/PhoneGap/Commands/Contacts.cs b/framework/PhoneGap/Commands/Contacts.cs
index 997a1c9..849b87a 100644
--- a/framework/PhoneGap/Commands/Contacts.cs
+++ b/framework/PhoneGap/Commands/Contacts.cs
@@ -351,6 +351,13 @@ namespace WP7GapClassLib.PhoneGap.Commands
         {
             ContactSearchParams searchParams = JSON.JsonHelper.Deserialize<ContactSearchParams>(searchCriteria);
 
+            if(searchParams.options == null)
+            {
+                searchParams.options = new SearchOptions();
+                searchParams.options.filter = "";
+                searchParams.options.multiple = true;
+            }
+
             DeviceContacts deviceContacts = new DeviceContacts();
             deviceContacts.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(contacts_SearchCompleted);
 
@@ -375,6 +382,7 @@ namespace WP7GapClassLib.PhoneGap.Commands
 
             try
             {
+  
                 deviceContacts.SearchAsync(searchParams.options.filter, filterKind, searchParams);
             }
             catch (Exception ex)


Mime
View raw message