You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by na...@apache.org on 2014/10/02 21:20:39 UTC

git commit: Amazon Specific changes: Added logs and corrected indentation according to 81161ebe668a14f87e1ef4b57f2d300a609b9a8b

Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master 32c0e41c4 -> a0785deff


Amazon Specific changes:
Added logs and corrected indentation according to 81161ebe668a14f87e1ef4b57f2d300a609b9a8b


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/a0785def
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/a0785def
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/a0785def

Branch: refs/heads/master
Commit: a0785deff8e68dc7a28f2ea493073355d0abcaf2
Parents: 32c0e41
Author: Prabhjot Singh <pr...@amazon.com>
Authored: Thu Sep 25 01:58:14 2014 +0530
Committer: Archana Naik <na...@lab126.com>
Committed: Thu Oct 2 12:20:22 2014 -0700

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


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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org