From 8d42bb48d24fdf4216c702434012ef0b31fa7eaf Mon Sep 17 00:00:00 2001 From: jens Date: Wed, 12 May 2021 19:41:04 +0200 Subject: [PATCH] WG now works. Many small changes and fixes. --- app/src/apkFlavor/AndroidManifest.xml | 1 + .../java/com/jens/automation2/ActivityPermissions.java | 8 ++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 10 insertions(+) diff --git a/app/src/apkFlavor/AndroidManifest.xml b/app/src/apkFlavor/AndroidManifest.xml index fa99bd93..4f4cb83f 100644 --- a/app/src/apkFlavor/AndroidManifest.xml +++ b/app/src/apkFlavor/AndroidManifest.xml @@ -64,6 +64,7 @@ + list) @@ -543,6 +544,12 @@ public class ActivityPermissions extends Activity action.getParameter2().contains(Actions.wireguard_tunnel_refresh) ) addToArrayListUnique(ActivityPermissions.permissionNameWireguard, requiredPermissions); +// if( +// action.getParameter2().contains("eu.faircode.netguard.START_PORT_FORWARD") +// || +// action.getParameter2().contains("eu.faircode.netguard.STOP_PORT_FORWARD") +// ) +// addToArrayListUnique("net.kollnig.missioncontrol.permission.ADMIN", requiredPermissions); break; case triggerUrl: addToArrayListUnique("android.permission.INTERNET", requiredPermissions); @@ -1075,6 +1082,7 @@ public class ActivityPermissions extends Activity NotificationManager mNotificationManager = (NotificationManager) Miscellaneous.getAnyContext().getSystemService(Context.NOTIFICATION_SERVICE); mNotificationManager.cancel(notificationIdPermissions); ActivityMainScreen.updateMainScreen(); + ActivityMainRules.getInstance().updateListView(); this.finish(); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3d3682a2..7ac22abf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -666,4 +666,5 @@ by startActivity() by sendBroadcast() Open webpage with examples + \ No newline at end of file