do not dismiss editAccountActivity when still trying to register new account

This commit is contained in:
Daniel Gultsch 2015-10-09 10:49:30 +02:00
parent e65068d226
commit ef605e4cbd

View file

@ -152,7 +152,9 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
mAccount.setOption(Account.OPTION_REGISTER, registerNewAccount); mAccount.setOption(Account.OPTION_REGISTER, registerNewAccount);
xmppConnectionService.createAccount(mAccount); xmppConnectionService.createAccount(mAccount);
} }
if (jidToEdit != null && !mAccount.isOptionSet(Account.OPTION_DISABLED)) { if (jidToEdit != null
&& !mAccount.isOptionSet(Account.OPTION_DISABLED)
&& !registerNewAccount) {
finish(); finish();
} else { } else {
updateSaveButton(); updateSaveButton();