mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +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:
parent
4a027252ac
commit
8dcfe18112
@ -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();");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user