From acc0f592d14fd5386f0b760393c1f3c0402b1dfb Mon Sep 17 00:00:00 2001 From: Jens Date: Sat, 8 May 2021 22:48:05 +0200 Subject: [PATCH] Wireguard integration --- app/src/main/java/com/jens/automation2/Actions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index 97856aaf..c2372132 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -611,6 +611,9 @@ public class Actions paramsStartIndex = 1; externalActivityIntent = new Intent(param); 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) // Toast.makeText(context, "bad", Toast.LENGTH_LONG).show(); }