mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 20:30:58 +01:00
remove WEEK_VIEW_DRAG_EVENT_ID_LABEL constant
This commit is contained in:
parent
737ecc8176
commit
595081c758
@ -565,7 +565,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
setOnLongClickListener { view ->
|
||||
currentlyDraggedView = view
|
||||
val shadowBuilder = View.DragShadowBuilder(view)
|
||||
val clipData = ClipData.newPlainText(WEEK_VIEW_DRAG_EVENT_ID_LABEL, event.id.toString())
|
||||
val clipData = ClipData.newPlainText("event_id_label", event.id.toString())
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
view.startDragAndDrop(clipData, shadowBuilder, null, 0)
|
||||
} else {
|
||||
@ -780,7 +780,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
setOnLongClickListener { view ->
|
||||
currentlyDraggedView = view
|
||||
val shadowBuilder = View.DragShadowBuilder(view)
|
||||
val clipData = ClipData.newPlainText(WEEK_VIEW_DRAG_EVENT_ID_LABEL, event.id.toString())
|
||||
val clipData = ClipData.newPlainText("event_id_label", event.id.toString())
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
view.startDragAndDrop(clipData, shadowBuilder, null, 0)
|
||||
} else {
|
||||
|
@ -19,7 +19,6 @@ const val SHORTCUT_NEW_EVENT = "shortcut_new_event"
|
||||
const val REGULAR_EVENT_TYPE_ID = 1L
|
||||
const val TIME_ZONE = "time_zone"
|
||||
const val CURRENT_TIME_ZONE = "current_time_zone"
|
||||
const val WEEK_VIEW_DRAG_EVENT_ID_LABEL = "event_id_label"
|
||||
|
||||
const val MONTHLY_VIEW = 1
|
||||
const val YEARLY_VIEW = 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user