Open links in new tabs (#603)
This commit is contained in:
parent
aecdbda375
commit
3dfe43dfb2
|
@ -147,7 +147,6 @@ public class LinkHelper {
|
||||||
*/
|
*/
|
||||||
public static void openLinkInBrowser(Uri uri, Context context) {
|
public static void openLinkInBrowser(Uri uri, Context context) {
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
||||||
intent.putExtra(Browser.EXTRA_APPLICATION_ID, context.getPackageName());
|
|
||||||
try {
|
try {
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
|
|
Loading…
Reference in New Issue