fetch dragged icons drawable if it is empty
This commit is contained in:
parent
11f3b05534
commit
d1a38d8a02
|
@ -76,6 +76,10 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Vie
|
|||
|
||||
fun itemDraggingStarted(draggedGridItem: HomeScreenGridItem) {
|
||||
draggedItem = draggedGridItem
|
||||
if (draggedItem!!.drawable == null) {
|
||||
draggedItem!!.drawable = context.getDrawableForPackageName(draggedGridItem.packageName)
|
||||
}
|
||||
|
||||
invalidate()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue