forked from jens/Automation
Wireguard integration
This commit is contained in:
parent
2e09ea1c90
commit
acc0f592d1
@ -611,6 +611,9 @@ public class Actions
|
|||||||
paramsStartIndex = 1;
|
paramsStartIndex = 1;
|
||||||
externalActivityIntent = new Intent(param);
|
externalActivityIntent = new Intent(param);
|
||||||
externalActivityIntent.addCategory(Intent.CATEGORY_DEFAULT);
|
externalActivityIntent.addCategory(Intent.CATEGORY_DEFAULT);
|
||||||
|
// Context c = autoMationServerRef.getApplicationContext();
|
||||||
|
// c.getApplicationContext()
|
||||||
|
// externalActivityIntent.setPackage("com.wireguard.android");//this did the trick actually
|
||||||
// if(externalActivityIntent.resolveActivity(autoMationServerRef.getPackageManager()) == null)
|
// if(externalActivityIntent.resolveActivity(autoMationServerRef.getPackageManager()) == null)
|
||||||
// Toast.makeText(context, "bad", Toast.LENGTH_LONG).show();
|
// Toast.makeText(context, "bad", Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user