prevent next button from showing up too early on account setup

This commit is contained in:
iNPUTmice 2015-02-25 23:48:45 +01:00
parent 0decd8ac28
commit b8bc70aaa0

View file

@ -235,7 +235,7 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
} }
protected void updateSaveButton() { protected void updateSaveButton() {
if (mAccount != null && mAccount.getStatus() == Account.State.CONNECTING) { if (mAccount != null && (mAccount.getStatus() == Account.State.CONNECTING || mFetchingAvatar)) {
this.mSaveButton.setEnabled(false); this.mSaveButton.setEnabled(false);
this.mSaveButton.setTextColor(getSecondaryTextColor()); this.mSaveButton.setTextColor(getSecondaryTextColor());
this.mSaveButton.setText(R.string.account_status_connecting); this.mSaveButton.setText(R.string.account_status_connecting);