Skip to content

Commit

Permalink
2222
Browse files Browse the repository at this point in the history
  • Loading branch information
alroyso committed Dec 3, 2020
1 parent f2bdfc1 commit b63c861
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openvpn/src/main/java/de/blinkt/openvpn/OpenVpnConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ static void startVpnInternal(Context context, String configContent, String userN
}

public static void disconnectFromVpn(Context context) {
// Intent intent = new Intent(context, DisconnectVpnActivity.class);
// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// context.startActivity(intent);
Intent intent = new Intent(context, OpenVPNService.class);
//intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.stopService(intent);
Intent intent = new Intent(context, DisconnectVpnActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
// Intent intent = new Intent(context, OpenVPNService.class);
// //intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// context.stopService(intent);
}

}

0 comments on commit b63c861

Please sign in to comment.