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

in EditProfileActivity
main
Konrad Pozniak 6 years ago
parent 91cb826adc
commit 336bc4d7ed
  1. 1
      app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.kt

@ -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)

Loading…
Cancel
Save