mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Profile action: fix editable icon
This commit is contained in:
parent
08693a6875
commit
ad8ed37ff6
1 changed files with 1 additions and 2 deletions
|
@ -66,7 +66,6 @@ abstract class ProfileActionItem : VectorEpoxyModel<ProfileActionItem.Holder>()
|
|||
if (listener == null) {
|
||||
holder.view.isClickable = false
|
||||
}
|
||||
holder.editable.isVisible = editable
|
||||
holder.title.text = title
|
||||
val tintColor = if (destructive) {
|
||||
ContextCompat.getColor(holder.view.context, R.color.riotx_notice)
|
||||
|
@ -94,7 +93,7 @@ abstract class ProfileActionItem : VectorEpoxyModel<ProfileActionItem.Holder>()
|
|||
holder.secondaryAccessory.isVisible = false
|
||||
}
|
||||
|
||||
if (editableRes != 0) {
|
||||
if (editableRes != 0 && editable) {
|
||||
val tintColorSecondary = if (destructive) {
|
||||
tintColor
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue