From a0785deff8e68dc7a28f2ea493073355d0abcaf2 Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Date: Thu, 25 Sep 2014 01:58:14 +0530 Subject: [PATCH] Amazon Specific changes: Added logs and corrected indentation according to 81161ebe668a14f87e1ef4b57f2d300a609b9a8b --- src/amazon/InAppBrowser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/amazon/InAppBrowser.java b/src/amazon/InAppBrowser.java index 25f593c..250a58c 100644 --- a/src/amazon/InAppBrowser.java +++ b/src/amazon/InAppBrowser.java @@ -126,21 +126,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(AmazonWebView.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); } }