don't overwrite edited information in editaccount on rotate

This commit is contained in:
Daniel Gultsch 2016-08-26 21:48:14 +02:00
parent ea0e6d0619
commit 78e962ce67
1 changed files with 3 additions and 1 deletions

View File

@ -626,10 +626,12 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
@Override
protected void onBackendConnected() {
boolean init = true;
if (mSavedInstanceAccount != null) {
try {
this.mAccount = xmppConnectionService.findAccountByJid(Jid.fromString(mSavedInstanceAccount));
this.mInitMode = mSavedInstanceInit;
init = false;
} catch (InvalidJidException e) {
this.mAccount = null;
}
@ -647,7 +649,7 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
this.mPassword.requestFocus();
}
}
updateAccountInformation(true);
updateAccountInformation(init);
}