mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-04-05 13:51:00 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pageChangeIndicatorsAlpha = 1f
|
||||||
|
removeCallbacks(startFadingIndicators)
|
||||||
if (draggedItemCurrentCoords.first == -1 && draggedItemCurrentCoords.second == -1 && draggedItem != null) {
|
if (draggedItemCurrentCoords.first == -1 && draggedItemCurrentCoords.second == -1 && draggedItem != null) {
|
||||||
if (draggedItem!!.type == ITEM_TYPE_WIDGET) {
|
if (draggedItem!!.type == ITEM_TYPE_WIDGET) {
|
||||||
val draggedWidgetView = widgetViews.firstOrNull { it.tag == draggedItem?.widgetId }
|
val draggedWidgetView = widgetViews.firstOrNull { it.tag == draggedItem?.widgetId }
|
||||||
@ -288,6 +290,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scheduleIndicatorsFade()
|
||||||
when (draggedItem!!.type) {
|
when (draggedItem!!.type) {
|
||||||
ITEM_TYPE_ICON, ITEM_TYPE_SHORTCUT -> addAppIconOrShortcut()
|
ITEM_TYPE_ICON, ITEM_TYPE_SHORTCUT -> addAppIconOrShortcut()
|
||||||
ITEM_TYPE_WIDGET -> addWidget()
|
ITEM_TYPE_WIDGET -> addWidget()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user