mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-03-31 19:40:40 +02:00
Show indicators as soon as item is moved
This commit is contained in:
parent
02684f393f
commit
68a8b5dd25
@ -225,6 +225,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
||||
return
|
||||
}
|
||||
|
||||
pageChangeIndicatorsAlpha = 1f
|
||||
removeCallbacks(startFadingIndicators)
|
||||
if (draggedItemCurrentCoords.first == -1 && draggedItemCurrentCoords.second == -1 && draggedItem != null) {
|
||||
if (draggedItem!!.type == ITEM_TYPE_WIDGET) {
|
||||
val draggedWidgetView = widgetViews.firstOrNull { it.tag == draggedItem?.widgetId }
|
||||
@ -288,6 +290,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
||||
return
|
||||
}
|
||||
|
||||
scheduleIndicatorsFade()
|
||||
when (draggedItem!!.type) {
|
||||
ITEM_TYPE_ICON, ITEM_TYPE_SHORTCUT -> addAppIconOrShortcut()
|
||||
ITEM_TYPE_WIDGET -> addWidget()
|
||||
|
Loading…
x
Reference in New Issue
Block a user