From 780d221b2f3a8a112fdcce888d3f7e515b805b56 Mon Sep 17 00:00:00 2001 From: Balint Kovacs Date: Wed, 20 Apr 2011 18:59:42 +0200 Subject: [PATCH] Fixed a problem that caused the application to save to tunnel preference when pressing the back button and hence has also restarted the service Signed-off-by: Balint Kovacs --- src/hu/blint/ssldroid/SSLDroid.java | 4 ++-- src/hu/blint/ssldroid/SSLDroidTunnelDetails.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hu/blint/ssldroid/SSLDroid.java b/src/hu/blint/ssldroid/SSLDroid.java index 4a12e5e..420c9d9 100644 --- a/src/hu/blint/ssldroid/SSLDroid.java +++ b/src/hu/blint/ssldroid/SSLDroid.java @@ -74,11 +74,11 @@ public class SSLDroid extends Service { for (TcpProxy proxy : tp) { proxy.stop(); } - removeNotification(0); - Log.d(TAG, "SSLDroid Service Stopped"); } catch (Exception e) { Log.d("SSLDroid", "Error stopping service: " + e.toString()); } + removeNotification(0); + Log.d(TAG, "SSLDroid Service Stopped"); } public void removeNotification(int id){ diff --git a/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java b/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java index ad74fb1..be79eb1 100644 --- a/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java +++ b/src/hu/blint/ssldroid/SSLDroidTunnelDetails.java @@ -104,7 +104,7 @@ public class SSLDroidTunnelDetails extends Activity { @Override protected void onPause() { super.onPause(); - saveState(); + //saveState(); } @Override