mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-15 13:35:04 -05:00
don't overwrite edited information in editaccount on rotate
This commit is contained in:
parent
ea0e6d0619
commit
78e962ce67
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user