From 78e962ce67b1e3cdd2f2ee376e85e7b1a9e5a2cd Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 26 Aug 2016 21:48:14 +0200 Subject: [PATCH] don't overwrite edited information in editaccount on rotate --- .../java/eu/siacs/conversations/ui/EditAccountActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index b15b73876..fb9a14a69 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); }