From 569d06e457b9318c9077e8c36d6806d3ea9a7381 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 14 Apr 2010 00:26:06 +0200 Subject: [PATCH] AddServerActivity: Save useSSL() state in database --- src/org/yaaic/activity/AddServerActivity.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/org/yaaic/activity/AddServerActivity.java b/src/org/yaaic/activity/AddServerActivity.java index 90585f4..d90808a 100644 --- a/src/org/yaaic/activity/AddServerActivity.java +++ b/src/org/yaaic/activity/AddServerActivity.java @@ -163,7 +163,7 @@ public class AddServerActivity extends Activity implements OnClickListener server.getPort(), server.getPassword(), false, // auto connect - false, // use ssl + server.useSSL(), identityId, server.getCharset() ); @@ -194,7 +194,7 @@ public class AddServerActivity extends Activity implements OnClickListener server.getPort(), server.getPassword(), false, // auto connect - false, // use ssl + server.useSSL(), identityId, server.getCharset() ); @@ -227,11 +227,10 @@ public class AddServerActivity extends Activity implements OnClickListener int port = Integer.parseInt(((EditText) findViewById(R.id.port)).getText().toString()); String password = ((EditText) findViewById(R.id.password)).getText().toString(); String charset = ((Spinner) findViewById(R.id.charset)).getSelectedItem().toString(); - Boolean useSSL = ((CheckBox) findViewById(R.id.useSSL)).isSelected(); + Boolean useSSL = ((CheckBox) findViewById(R.id.useSSL)).isChecked(); // not in use yet //boolean autoConnect = ((CheckBox) findViewById(R.id.autoconnect)).isChecked(); - //boolean useSSL = ((CheckBox) findViewById(R.id.useSSL)).isChecked(); Server server = new Server(); server.setHost(host);