From 81161ebe668a14f87e1ef4b57f2d300a609b9a8b Mon Sep 17 00:00:00 2001 From: Marcel Kinard Date: Wed, 27 Aug 2014 14:11:43 -0400 Subject: [PATCH] Add just a bit more logging --- src/android/InAppBrowser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index 796036f..f97e0b2 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -120,21 +120,24 @@ public class InAppBrowser extends CordovaPlugin { // load in webview if (url.startsWith("file://") || url.startsWith("javascript:") || Config.isUrlWhiteListed(url)) { + Log.d(LOG_TAG, "loading in webview"); webView.loadUrl(url); } //Load the dialer else if (url.startsWith(WebView.SCHEME_TEL)) { try { + Log.d(LOG_TAG, "loading in dialer"); Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse(url)); - cordova.getActivity().startActivity(intent); + cordova.getActivity().startActivity(intent); } catch (android.content.ActivityNotFoundException e) { LOG.e(LOG_TAG, "Error dialing " + url + ": " + e.toString()); } } // load in InAppBrowser else { + Log.d(LOG_TAG, "loading in InAppBrowser"); result = showWebPage(url, features); } }