diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-08-26 21:48:14 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-08-27 23:15:35 +0200 |
commit | 1dfdee1a93cbf8ea979750b00486c55cf5a61a0f (patch) | |
tree | d327ed03915798148dd02aa9ea6fcccf886f051b | |
parent | 1b4ebd370a08383abcf95a9da49e45866acf9796 (diff) |
don't overwrite edited information in editaccount on rotate
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/EditAccountActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java index e26cfdaed..75450d6c4 100644 --- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java +++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java @@ -624,10 +624,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; } @@ -645,7 +647,7 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate this.mPassword.requestFocus(); } } - updateAccountInformation(true); + updateAccountInformation(init); } |