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
	
	 Daniel Gultsch
						Daniel Gultsch