Remove option for compression (enabled by default / hidden setting)

This commit is contained in:
Rene Treffer 2014-04-03 20:54:50 +02:00
parent 7db21136a3
commit e6797e1db4
2 changed files with 1 additions and 12 deletions

View file

@ -51,13 +51,6 @@
android:text="Use Transport Layer Security (TLS)" android:text="Use Transport Layer Security (TLS)"
android:checked="true"/> android:checked="true"/>
<CheckBox
android:id="@+id/account_usecompression"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Use Compression (zlib)"
android:checked="true"/>
<CheckBox <CheckBox
android:id="@+id/edit_account_register_new" android:id="@+id/edit_account_register_new"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -45,8 +45,6 @@ public class EditAccount extends DialogFragment {
.findViewById(R.id.account_confirm_password_desc); .findViewById(R.id.account_confirm_password_desc);
final CheckBox useTLS = (CheckBox) view.findViewById(R.id.account_usetls); final CheckBox useTLS = (CheckBox) view.findViewById(R.id.account_usetls);
final CheckBox useCompression = (CheckBox) view.findViewById(R.id.account_usecompression);
final EditText password = (EditText) view final EditText password = (EditText) view
.findViewById(R.id.account_password); .findViewById(R.id.account_password);
final EditText passwordConfirm = (EditText) view final EditText passwordConfirm = (EditText) view
@ -60,7 +58,6 @@ public class EditAccount extends DialogFragment {
jidText.setText(account.getJid()); jidText.setText(account.getJid());
password.setText(account.getPassword()); password.setText(account.getPassword());
useTLS.setChecked(account.isOptionSet(Account.OPTION_USETLS)); useTLS.setChecked(account.isOptionSet(Account.OPTION_USETLS));
useCompression.setChecked(account.isOptionSet(Account.OPTION_USETLS));
Log.d("xmppService","mein debugger. account != null"); Log.d("xmppService","mein debugger. account != null");
if (account.isOptionSet(Account.OPTION_REGISTER)) { if (account.isOptionSet(Account.OPTION_REGISTER)) {
registerAccount.setChecked(true); registerAccount.setChecked(true);
@ -121,7 +118,6 @@ public class EditAccount extends DialogFragment {
.findViewById(R.id.account_password); .findViewById(R.id.account_password);
String password = passwordEdit.getText().toString(); String password = passwordEdit.getText().toString();
CheckBox useTLS = (CheckBox) d.findViewById(R.id.account_usetls); CheckBox useTLS = (CheckBox) d.findViewById(R.id.account_usetls);
CheckBox useCompression = (CheckBox) d.findViewById(R.id.account_usecompression);
CheckBox register = (CheckBox) d.findViewById(R.id.edit_account_register_new); CheckBox register = (CheckBox) d.findViewById(R.id.edit_account_register_new);
String username; String username;
String server; String server;
@ -141,7 +137,7 @@ public class EditAccount extends DialogFragment {
account = new Account(username, server, password); account = new Account(username, server, password);
} }
account.setOption(Account.OPTION_USETLS, useTLS.isChecked()); account.setOption(Account.OPTION_USETLS, useTLS.isChecked());
account.setOption(Account.OPTION_USECOMPRESSION, useCompression.isChecked()); account.setOption(Account.OPTION_USECOMPRESSION, true);
account.setOption(Account.OPTION_REGISTER, register.isChecked()); account.setOption(Account.OPTION_REGISTER, register.isChecked());
if (listener != null) { if (listener != null) {
listener.onAccountEdited(account); listener.onAccountEdited(account);