-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setInitiateOnLongPress no longer works on Android 12 #516
Comments
asuka-mio
added a commit
to Ehviewer-Overhauled/Ehviewer
that referenced
this issue
Aug 5, 2022
* Actually this library is unmaintained for above a year, and drag feature we used is totally broken on Android 12 and above h6ah4i/android-advancedrecyclerview#516 #54
ChaoCaiGuo
pushed a commit
to ChaoCaiGuo/Ehviewer
that referenced
this issue
Aug 28, 2022
* Actually this library is unmaintained for above a year, and drag feature we used is totally broken on Android 12 and above h6ah4i/android-advancedrecyclerview#516 Ehviewer-Overhauled#54
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: