mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Handle ACTION_DRAG_LOCATION due to a bug https://stackoverflow.com/a/19460338
This commit is contained in:
@@ -903,9 +903,14 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
return when (dragEvent.action) {
|
return when (dragEvent.action) {
|
||||||
DragEvent.ACTION_DRAG_STARTED -> currentlyDraggedView == view
|
DragEvent.ACTION_DRAG_STARTED -> currentlyDraggedView == view
|
||||||
DragEvent.ACTION_DRAG_ENTERED -> {
|
DragEvent.ACTION_DRAG_ENTERED -> {
|
||||||
view.beGone()
|
view.beInvisible()
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
// handle ACTION_DRAG_LOCATION due to https://stackoverflow.com/a/19460338
|
||||||
|
DragEvent.ACTION_DRAG_LOCATION -> {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
DragEvent.ACTION_DRAG_ENDED -> {
|
DragEvent.ACTION_DRAG_ENDED -> {
|
||||||
currentlyDraggedView = null
|
currentlyDraggedView = null
|
||||||
view.beVisible()
|
view.beVisible()
|
||||||
|
Reference in New Issue
Block a user