fix bug where addField button was enabled when it should not be

in EditProfileActivity
This commit is contained in:
Konrad Pozniak 2018-08-20 14:49:23 +02:00
parent 440a351e06
commit 268ebb55f0

View file

@ -124,6 +124,7 @@ class EditProfileActivity : BaseActivity(), Injectable {
lockedCheckBox.isChecked = me.locked lockedCheckBox.isChecked = me.locked
accountFieldEditAdapter.setFields(me.source?.fields ?: emptyList()) accountFieldEditAdapter.setFields(me.source?.fields ?: emptyList())
addFieldButton.isEnabled = me.source?.fields?.size ?: 0 < MAX_ACCOUNT_FIELDS
if(viewModel.avatarData.value == null) { if(viewModel.avatarData.value == null) {
Picasso.with(this) Picasso.with(this)