Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6f0809558 | ||
|
|
11ed7e45d8 |
@@ -13,8 +13,8 @@ android {
|
|||||||
applicationId "com.termux"
|
applicationId "com.termux"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
versionCode 47
|
versionCode 48
|
||||||
versionName "0.47"
|
versionName "0.48"
|
||||||
|
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
ndkBuild {
|
ndkBuild {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class TermuxOpenReceiver extends BroadcastReceiver {
|
|||||||
final boolean isExternalUrl = data.getScheme() != null && !data.getScheme().equals("file");
|
final boolean isExternalUrl = data.getScheme() != null && !data.getScheme().equals("file");
|
||||||
if (isExternalUrl) {
|
if (isExternalUrl) {
|
||||||
Intent viewIntent = new Intent(Intent.ACTION_VIEW, data);
|
Intent viewIntent = new Intent(Intent.ACTION_VIEW, data);
|
||||||
|
viewIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
try {
|
try {
|
||||||
context.startActivity(viewIntent);
|
context.startActivity(viewIntent);
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user