mirror of
https://github.com/apache/cordova-android.git
synced 2026-02-21 00:02:46 +08:00
Changed Address Book so it returns a set of contacts instead of calling win over and over again
This commit is contained in:
@@ -167,6 +167,8 @@ public class ContactManager {
|
||||
} while (cur.moveToNext());
|
||||
if (all)
|
||||
mView.loadUrl("javascript:navigator.ContactManager.droidDone()");
|
||||
else
|
||||
mView.loadUrl("javascript:navigator.AddressBook.droidDoneContacts();");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -195,13 +197,8 @@ public class ContactManager {
|
||||
data.email = email;
|
||||
mView.loadUrl("javascript:navigator.AddressBook.droidFoundContact('" + data.name + "','" + data.phone + "','" + data.email +"')");
|
||||
}
|
||||
else
|
||||
{
|
||||
mView.loadUrl("javascript:navigator.AddressBook.fail('Not found')");
|
||||
}
|
||||
} while (cur.moveToNext());
|
||||
|
||||
|
||||
mView.loadUrl("javascript:navigator.AddressBook.droidDoneContacts();");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user