Fix pulse on quote press.
This commit is contained in:
parent
4bf8e2c488
commit
e06126d889
1 changed files with 4 additions and 10 deletions
|
@ -566,19 +566,13 @@ class MultiselectItemDecoration(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun RecyclerView.getInteractableChildren(): Sequence<InteractiveConversationElement> {
|
private fun RecyclerView.getInteractableChildren(): Sequence<InteractiveConversationElement> {
|
||||||
return if (FeatureFlags.useTextOnlyConversationItemV2()) {
|
return children.map { getChildViewHolder(it) }.filterIsInstance<InteractiveConversationElement>() + children.filterIsInstance<InteractiveConversationElement>()
|
||||||
children.map { getChildViewHolder(it) }.filterIsInstance<InteractiveConversationElement>()
|
|
||||||
} else {
|
|
||||||
children.filterIsInstance<InteractiveConversationElement>()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun resolveMultiselectable(parent: RecyclerView, child: View): Multiselectable? {
|
private fun resolveMultiselectable(parent: RecyclerView, child: View): Multiselectable? {
|
||||||
return if (FeatureFlags.useTextOnlyConversationItemV2()) {
|
val multiselectable = parent.getChildViewHolder(child) as? Multiselectable
|
||||||
parent.getChildViewHolder(child) as? Multiselectable
|
|
||||||
} else {
|
return multiselectable ?: child as? Multiselectable
|
||||||
child as? Multiselectable
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class PulseAnimator(pulseColor: Int) {
|
private class PulseAnimator(pulseColor: Int) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue