fixed bug where one couldnt short click to edit in the account list
This commit is contained in:
parent
6db012ac6f
commit
eec3906692
|
@ -24,4 +24,5 @@
|
||||||
<string name="remove_contact_text">Do you want to delete %s from your roster. The conversation assoziated with this account will not be removed.</string>
|
<string name="remove_contact_text">Do you want to delete %s from your roster. The conversation assoziated with this account will not be removed.</string>
|
||||||
<string name="untrusted_cert_hint">The server %s presented you with an unstrusted, possible self signed, certificate.</string>
|
<string name="untrusted_cert_hint">The server %s presented you with an unstrusted, possible self signed, certificate.</string>
|
||||||
<string name="account_info">Server Info</string>
|
<string name="account_info">Server Info</string>
|
||||||
|
<string name="register_account">Register new account on server</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -65,9 +65,10 @@ public class EditAccount extends DialogFragment {
|
||||||
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);
|
||||||
builder.setTitle("Add account");
|
builder.setTitle(getString(R.string.register_account));
|
||||||
okButtonDesc = "Register";
|
okButtonDesc = "Register";
|
||||||
passwordConfirm.setVisibility(View.VISIBLE);
|
passwordConfirm.setVisibility(View.VISIBLE);
|
||||||
|
passwordConfirm.setText(account.getPassword());
|
||||||
} else {
|
} else {
|
||||||
registerAccount.setVisibility(View.GONE);
|
registerAccount.setVisibility(View.GONE);
|
||||||
builder.setTitle("Edit account");
|
builder.setTitle("Edit account");
|
||||||
|
@ -88,10 +89,12 @@ public class EditAccount extends DialogFragment {
|
||||||
Button positiveButton = (Button) d
|
Button positiveButton = (Button) d
|
||||||
.getButton(Dialog.BUTTON_POSITIVE);
|
.getButton(Dialog.BUTTON_POSITIVE);
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
|
d.setTitle(getString(R.string.register_account));
|
||||||
positiveButton.setText("Register");
|
positiveButton.setText("Register");
|
||||||
passwordConfirm.setVisibility(View.VISIBLE);
|
passwordConfirm.setVisibility(View.VISIBLE);
|
||||||
confirmPwDesc.setVisibility(View.VISIBLE);
|
confirmPwDesc.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
d.setTitle("Add account");
|
||||||
passwordConfirm.setVisibility(View.GONE);
|
passwordConfirm.setVisibility(View.GONE);
|
||||||
positiveButton.setText("Add");
|
positiveButton.setText("Add");
|
||||||
confirmPwDesc.setVisibility(View.GONE);
|
confirmPwDesc.setVisibility(View.GONE);
|
||||||
|
|
Loading…
Reference in a new issue