diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-02-26 17:17:40 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-02-26 17:17:40 +0100 |
commit | a022e4b41aa9973e2e208633380c7c82b4b1a4a6 (patch) | |
tree | 3c979a3c67a6bcb2a2ebbd6b1fa59adbb721cc6a /src/main/java/eu/siacs/conversations/ui | |
parent | 1b579f512c129f421517447c9a8bf448daed6b74 (diff) |
reset error status in edit account when reconnecting
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index c3e8e174b..d001d9d92 100644 --- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java @@ -102,6 +102,8 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate } catch (final InvalidJidException ignored) { return; } + mAccountJid.setError(null); + mPasswordConfirm.setError(null); mAccount.setPassword(password); mAccount.setOption(Account.OPTION_REGISTER, registerNewAccount); xmppConnectionService.updateAccount(mAccount); @@ -493,6 +495,8 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate if (this.mAccount.errorStatus()) { this.mAccountJid.setError(getString(this.mAccount.getStatus().getReadableId())); this.mAccountJid.requestFocus(); + } else { + this.mAccountJid.setError(null); } this.mStats.setVisibility(View.GONE); } |