cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject git commit: Add just a bit more logging
Date Wed, 27 Aug 2014 18:12:40 GMT
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 <cmarcelk@gmail.com>
Authored: Wed Aug 27 14:11:43 2014 -0400
Committer: Marcel Kinard <cmarcelk@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);
                         }
                     }


Mime
View raw message