We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e5da53 commit cd10c1cCopy full SHA for cd10c1c
tordnscrypt/src/main/java/pan/alexander/tordnscrypt/vpn/service/ServiceVPN.java
@@ -948,6 +948,13 @@ public void onTaskRemoved(Intent rootIntent) {
948
949
loge("VPN service task removed " + this.hashCode());
950
951
+ boolean vpnEnabled = defaultPreferences.get().getBoolean(VPN_SERVICE_ENABLED, false);
952
+ if (vpnEnabled) {
953
+ Intent starterIntent = new Intent(this, BootCompleteReceiver.class);
954
+ starterIntent.setAction(ALWAYS_ON_VPN);
955
+ sendBroadcast(starterIntent);
956
+ }
957
+
958
super.onTaskRemoved(rootIntent);
959
}
960
0 commit comments