mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Fixing Contacts.find to use PluginResult
This commit is contained in:
@@ -61,7 +61,8 @@ public class ContactManager implements Plugin {
|
||||
|
||||
try {
|
||||
if (action.equals("search")) {
|
||||
contactAccessor.search(args.getJSONArray(0), args.getJSONObject(1));
|
||||
JSONArray res = contactAccessor.search(args.getJSONArray(0), args.getJSONObject(1));
|
||||
return new PluginResult(status, res);
|
||||
}
|
||||
else if (action.equals("create")) {
|
||||
// TODO Coming soon!
|
||||
|
||||
Reference in New Issue
Block a user