You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within an adapter on onBindViewHolder, I have a view that removes an item from the list.
e.g.
override fun onBindViewHolder(holder: MemberViewHolder, position: Int) {
...
binding.removeBtn.setOnClickListener {
circle.removeMember(memberWrapper.member.userId)
notifyDataSetChanged()
memberRemovalListener.onMemberRemoved(memberWrapper.member)
}
...
}
The click listener set on binding.removeBtn responses to the tap of this view on Android 11 and below.
However, on Android 12, the click event no longer gets fired.
And it might be related to drag touch event not getting propagating down to click events.
The text was updated successfully, but these errors were encountered:
asuka-mio
added a commit
to Ehviewer-Overhauled/Ehviewer
that referenced
this issue
Aug 5, 2022
On Android 12, setInitiateOnLongPress = true is ignored and drag and drop gets initiated by just a tap.
Also another issue that might have been caused by probably the same root issue is
I have the drag and drop manager setup as
Within an adapter on onBindViewHolder, I have a view that removes an item from the list.
e.g.
override fun onBindViewHolder(holder: MemberViewHolder, position: Int) {
...
binding.removeBtn.setOnClickListener {
circle.removeMember(memberWrapper.member.userId)
notifyDataSetChanged()
memberRemovalListener.onMemberRemoved(memberWrapper.member)
}
...
}
The click listener set on binding.removeBtn responses to the tap of this view on Android 11 and below.
However, on Android 12, the click event no longer gets fired.
And it might be related to drag touch event not getting propagating down to click events.
The text was updated successfully, but these errors were encountered: