From f83d37f2ca3917c7a08d0677b358f632f19b2517 Mon Sep 17 00:00:00 2001 From: Balint Kovacs Date: Thu, 21 Apr 2011 00:20:19 +0200 Subject: [PATCH] Moved saving the TunnelDetails state from the onPause() hook to the explicit button press event for the Apply button to avoid the changes to be saved if the user hits the back button. Signed-off-by: Balint Kovacs --- src/hu/blint/ssldroid/SSLDroidTunnelDetails.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java b/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java index 9d933ea..23f6e62 100644 --- a/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java +++ b/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java @@ -85,6 +85,7 @@ public class SSLDroidTunnelDetails extends Activity { Toast.makeText(getBaseContext(), "Required PKCS12 file parameter not setup, skipping save", 5).show(); return; } + saveState(); setResult(RESULT_OK); finish(); } @@ -164,7 +165,7 @@ public class SSLDroidTunnelDetails extends Activity { @Override protected void onPause() { super.onPause(); - saveState(); + //saveState(); } @Override