don't show avatar on initial account creation

This commit is contained in:
iNPUTmice 2014-11-06 16:51:50 +01:00
parent 56caf35e89
commit dace729c5b

View File

@ -400,8 +400,10 @@ public class EditAccountActivity extends XmppActivity {
private void updateAccountInformation() { private void updateAccountInformation() {
this.mAccountJid.setText(this.mAccount.getJid()); this.mAccountJid.setText(this.mAccount.getJid());
this.mPassword.setText(this.mAccount.getPassword()); this.mPassword.setText(this.mAccount.getPassword());
this.mAvatar.setVisibility(View.VISIBLE); if (this.jidToEdit != null) {
this.mAvatar.setImageBitmap(avatarService().get(this.mAccount,getPixel(72))); this.mAvatar.setVisibility(View.VISIBLE);
this.mAvatar.setImageBitmap(avatarService().get(this.mAccount, getPixel(72)));
}
if (this.mAccount.isOptionSet(Account.OPTION_REGISTER)) { if (this.mAccount.isOptionSet(Account.OPTION_REGISTER)) {
this.mRegisterNew.setVisibility(View.VISIBLE); this.mRegisterNew.setVisibility(View.VISIBLE);
this.mRegisterNew.setChecked(true); this.mRegisterNew.setChecked(true);