android: Fixed "Configure" button in Android VPN dialog
[strongswan.git] / src / frontends / android / src / org / strongswan / android / logic / CharonVpnService.java
index 9247819..1e1556c 100644 (file)
@@ -547,7 +547,7 @@ public class CharonVpnService extends VpnService implements Runnable
                        Context context = getApplicationContext();
                        Intent intent = new Intent(context, MainActivity.class);
                        PendingIntent pending = PendingIntent.getActivity(context, 0, intent,
-                                                                                                                         Intent.FLAG_ACTIVITY_NEW_TASK);
+                                                                                                                         PendingIntent.FLAG_UPDATE_CURRENT);
                        builder.setConfigureIntent(pending);
                        return builder;
                }