You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2014/08/27 20:12:40 UTC

git commit: Add just a bit more logging

Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master 683937872 -> 81161ebe6


Add just a bit more logging


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/81161ebe
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/81161ebe
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/81161ebe

Branch: refs/heads/master
Commit: 81161ebe668a14f87e1ef4b57f2d300a609b9a8b
Parents: 6839378
Author: Marcel Kinard <cm...@gmail.com>
Authored: Wed Aug 27 14:11:43 2014 -0400
Committer: Marcel Kinard <cm...@gmail.com>
Committed: Wed Aug 27 14:11:43 2014 -0400

----------------------------------------------------------------------
 src/android/InAppBrowser.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/81161ebe/src/android/InAppBrowser.java
----------------------------------------------------------------------
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);
                         }
                     }