android: Fixed "Configure" button in Android VPN dialog
authorTobias Brunner <tobias@strongswan.org>
Wed, 10 Oct 2012 09:56:34 +0000 (11:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 Oct 2012 12:16:16 +0000 (14:16 +0200)
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,
                        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;
                }
                        builder.setConfigureIntent(pending);
                        return builder;
                }