summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-11-17 00:13:38 +0100
committercyBerta <cyberta@riseup.net>2023-11-23 09:51:28 +0100
commit767585d54d8f347744ebcf5f22da3324d980749a (patch)
treed7dc7ff84b70da169a55d33c607eb4b92df144fa /app/src
parent7cbb783b7d7df1c52ffcc6f4ee5c3b526b8f0375 (diff)
use application context to create VPN permission request intent
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java
index b258a100..dd735f84 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java
@@ -100,7 +100,7 @@ public class SetupActivity extends AppCompatActivity implements SetupActivityCal
// indicator views for VPN permission
- Intent requestVpnPermission = VpnService.prepare(this);
+ Intent requestVpnPermission = VpnService.prepare(this.getApplicationContext());
if (requestVpnPermission != null) {
addIndicatorView(indicatorViews);
addIndicatorView(indicatorViews);