aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-08-26 21:48:14 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-08-26 21:48:14 +0200
commit78e962ce67b1e3cdd2f2ee376e85e7b1a9e5a2cd (patch)
tree23d8fbcaf29c72f7258179af08533eb899b3554d /src/main
parentea0e6d061945b98357275ed5d9351ffa846c451d (diff)
don't overwrite edited information in editaccount on rotate
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
index b15b7387..fb9a14a6 100644
--- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
@@ -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);
}