mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Use ACTION_UP
This commit is contained in:
parent
81ae8b6591
commit
b3af98cae0
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ class SwipeToDeleteCallback(private val adapter: DownloadHeaderAdapter) : ItemTo
|
||||||
|
|
||||||
if (dX <= -swipeDistance && !isCurrentlyActive) {
|
if (dX <= -swipeDistance && !isCurrentlyActive) {
|
||||||
recyclerView.setOnTouchListener { _, event ->
|
recyclerView.setOnTouchListener { _, event ->
|
||||||
if (event.action == MotionEvent.ACTION_DOWN) {
|
if (event.action == MotionEvent.ACTION_UP) {
|
||||||
val x = event.x.toInt()
|
val x = event.x.toInt()
|
||||||
val y = event.y.toInt()
|
val y = event.y.toInt()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue