Skip to content

Commit 6165245

Browse files
committed
Allow to switch to PowerTunnel VPN from Quick Settings (#34)
1 parent f7dd5de commit 6165245

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/ru/krlvm/powertunnel/android/managers/PTManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.content.Context;
44
import android.content.Intent;
55
import android.content.SharedPreferences;
6+
import android.net.VpnService;
67
import android.os.Handler;
78
import android.widget.Toast;
89

@@ -163,6 +164,7 @@ public static boolean isVPN(SharedPreferences prefs) {
163164

164165
public static void startTunnel(Context context) {
165166
if(isVPN(context)) {
167+
VpnService.prepare(context);
166168
startVpn(context);
167169
} else {
168170
startProxyService(context);

0 commit comments

Comments
 (0)