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