mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-23 01:06:23 +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());
|
} while (cur.moveToNext());
|
||||||
if (all)
|
if (all)
|
||||||
mView.loadUrl("javascript:navigator.ContactManager.droidDone()");
|
mView.loadUrl("javascript:navigator.ContactManager.droidDone()");
|
||||||
|
else
|
||||||
|
mView.loadUrl("javascript:navigator.AddressBook.droidDoneContacts();");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -195,13 +197,8 @@ public class ContactManager {
|
|||||||
data.email = email;
|
data.email = email;
|
||||||
mView.loadUrl("javascript:navigator.AddressBook.droidFoundContact('" + data.name + "','" + data.phone + "','" + data.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());
|
} while (cur.moveToNext());
|
||||||
|
mView.loadUrl("javascript:navigator.AddressBook.droidDoneContacts();");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user