mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-09 00:18:43 +01:00
fix dragged view disappears if drop is cancelled
This commit is contained in:
parent
f87ca68946
commit
7689295ea0
@ -781,7 +781,14 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
}
|
||||
// handle ACTION_DRAG_LOCATION due to https://stackoverflow.com/a/19460338
|
||||
DragEvent.ACTION_DRAG_LOCATION -> true
|
||||
DragEvent.ACTION_DROP -> {
|
||||
view.beVisible()
|
||||
true
|
||||
}
|
||||
DragEvent.ACTION_DRAG_ENDED -> {
|
||||
if (!dragEvent.result) {
|
||||
view.beVisible()
|
||||
}
|
||||
currentlyDraggedView = null
|
||||
true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user