diff --git a/src/com/phonegap/ContactManager.java b/src/com/phonegap/ContactManager.java index ff4c644b..2fbc87ff 100644 --- a/src/com/phonegap/ContactManager.java +++ b/src/com/phonegap/ContactManager.java @@ -172,7 +172,10 @@ public class ContactManager { } else { - mView.loadUrl("javascript:navigator.AddressBook.fail('None found!')"); + if(all) + mView.loadUrl("javascript:navigator.ContactManager.fail()"); + else + mView.loadUrl("javascript:navigator.AddressBook.fail('None found!')"); } }