mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-10 05:08:18 -05:00
AddServerActivity: Save useSSL() state in database
This commit is contained in:
parent
c4a5ffe27b
commit
569d06e457
@ -163,7 +163,7 @@ public class AddServerActivity extends Activity implements OnClickListener
|
|||||||
server.getPort(),
|
server.getPort(),
|
||||||
server.getPassword(),
|
server.getPassword(),
|
||||||
false, // auto connect
|
false, // auto connect
|
||||||
false, // use ssl
|
server.useSSL(),
|
||||||
identityId,
|
identityId,
|
||||||
server.getCharset()
|
server.getCharset()
|
||||||
);
|
);
|
||||||
@ -194,7 +194,7 @@ public class AddServerActivity extends Activity implements OnClickListener
|
|||||||
server.getPort(),
|
server.getPort(),
|
||||||
server.getPassword(),
|
server.getPassword(),
|
||||||
false, // auto connect
|
false, // auto connect
|
||||||
false, // use ssl
|
server.useSSL(),
|
||||||
identityId,
|
identityId,
|
||||||
server.getCharset()
|
server.getCharset()
|
||||||
);
|
);
|
||||||
@ -227,11 +227,10 @@ public class AddServerActivity extends Activity implements OnClickListener
|
|||||||
int port = Integer.parseInt(((EditText) findViewById(R.id.port)).getText().toString());
|
int port = Integer.parseInt(((EditText) findViewById(R.id.port)).getText().toString());
|
||||||
String password = ((EditText) findViewById(R.id.password)).getText().toString();
|
String password = ((EditText) findViewById(R.id.password)).getText().toString();
|
||||||
String charset = ((Spinner) findViewById(R.id.charset)).getSelectedItem().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
|
// not in use yet
|
||||||
//boolean autoConnect = ((CheckBox) findViewById(R.id.autoconnect)).isChecked();
|
//boolean autoConnect = ((CheckBox) findViewById(R.id.autoconnect)).isChecked();
|
||||||
//boolean useSSL = ((CheckBox) findViewById(R.id.useSSL)).isChecked();
|
|
||||||
|
|
||||||
Server server = new Server();
|
Server server = new Server();
|
||||||
server.setHost(host);
|
server.setHost(host);
|
||||||
|
Loading…
Reference in New Issue
Block a user