Fix / kebab menu not always visible in space item
Bug due to cell reuse not showing back menu
This commit is contained in:
parent
3378e23cc2
commit
872c45d5a3
|
@ -55,6 +55,7 @@ abstract class SpaceSummaryItem : VectorEpoxyModel<SpaceSummaryItem.Holder>() {
|
||||||
holder.groupNameView.text = matrixItem.displayName
|
holder.groupNameView.text = matrixItem.displayName
|
||||||
holder.rootView.isChecked = selected
|
holder.rootView.isChecked = selected
|
||||||
if (onMore != null) {
|
if (onMore != null) {
|
||||||
|
holder.moreView.isVisible = true
|
||||||
holder.moreView.setOnClickListener(
|
holder.moreView.setOnClickListener(
|
||||||
DebouncedClickListener({ _ ->
|
DebouncedClickListener({ _ ->
|
||||||
onMore?.invoke()
|
onMore?.invoke()
|
||||||
|
@ -66,16 +67,6 @@ abstract class SpaceSummaryItem : VectorEpoxyModel<SpaceSummaryItem.Holder>() {
|
||||||
|
|
||||||
holder.secondLineText.setTextOrHide(description)
|
holder.secondLineText.setTextOrHide(description)
|
||||||
if (hasChildren) {
|
if (hasChildren) {
|
||||||
// holder.collapseIndicator.setOnClickListener(
|
|
||||||
// DebouncedClickListener({ _ ->
|
|
||||||
// toggleExpand?.invoke()
|
|
||||||
// })
|
|
||||||
// )
|
|
||||||
// when (expanded) {
|
|
||||||
// null -> {
|
|
||||||
// holder.collapseIndicator.isGone = true
|
|
||||||
// }
|
|
||||||
// else -> {
|
|
||||||
holder.collapseIndicator.isVisible = true
|
holder.collapseIndicator.isVisible = true
|
||||||
holder.collapseIndicator.setImageDrawable(
|
holder.collapseIndicator.setImageDrawable(
|
||||||
ContextCompat.getDrawable(holder.view.context,
|
ContextCompat.getDrawable(holder.view.context,
|
||||||
|
@ -87,8 +78,6 @@ abstract class SpaceSummaryItem : VectorEpoxyModel<SpaceSummaryItem.Holder>() {
|
||||||
toggleExpand?.invoke()
|
toggleExpand?.invoke()
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
// }
|
|
||||||
// }
|
|
||||||
} else {
|
} else {
|
||||||
holder.collapseIndicator.isGone = true
|
holder.collapseIndicator.isGone = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue