You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/02/20 01:56:37 UTC
cordova-plugin-inappbrowser git commit: Keep external android pages
in a single tab. (close #61)
Repository: cordova-plugin-inappbrowser
Updated Branches:
refs/heads/master 0293771e1 -> f8a80ce27
Keep external android pages in a single tab. (close #61)
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/f8a80ce2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/f8a80ce2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/f8a80ce2
Branch: refs/heads/master
Commit: f8a80ce27dfd2d0c57b7b2a2a01832ea938b931f
Parents: 0293771
Author: Maxime Boucher-Allard <ma...@ulaval.ca>
Authored: Mon Sep 15 16:10:03 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Feb 19 19:56:26 2015 -0500
----------------------------------------------------------------------
src/android/InAppBrowser.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/f8a80ce2/src/android/InAppBrowser.java
----------------------------------------------------------------------
diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java
index 5b5f567..2cdb979 100644
--- a/src/android/InAppBrowser.java
+++ b/src/android/InAppBrowser.java
@@ -22,6 +22,7 @@ import android.annotation.SuppressLint;
import org.apache.cordova.inappbrowser.InAppBrowserDialog;
import android.content.Context;
import android.content.Intent;
+import android.provider.Browser;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
@@ -343,6 +344,7 @@ public class InAppBrowser extends CordovaPlugin {
} else {
intent.setData(uri);
}
+ intent.putExtra(Browser.EXTRA_APPLICATION_ID, cordova.getActivity().getPackageName());
this.cordova.getActivity().startActivity(intent);
return "";
} catch (android.content.ActivityNotFoundException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org