mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
ce76bf5d81
commit
c9d2fdde10
@ -291,8 +291,17 @@ class DragSelectTouchHelper(
|
||||
updateSelectedRange(rv, e)
|
||||
}
|
||||
}
|
||||
MotionEvent.ACTION_CANCEL, MotionEvent.ACTION_UP -> selectFinished(mEnd)
|
||||
else -> {
|
||||
MotionEvent.ACTION_CANCEL, MotionEvent.ACTION_UP -> {
|
||||
if (mSlideStateStartPosition != RecyclerView.NO_POSITION) {
|
||||
selectFirstItem(mSlideStateStartPosition)
|
||||
// selection is triggered
|
||||
mSlideStateStartPosition = RecyclerView.NO_POSITION
|
||||
Logger.i("onTouchEvent: after slide mode down")
|
||||
}
|
||||
if (!mIsInTopHotspot && !mIsInBottomHotspot) {
|
||||
updateSelectedRange(rv, e)
|
||||
}
|
||||
selectFinished(mEnd)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user