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