fetch dragged icons drawable if it is empty

This commit is contained in:
tibbi 2022-09-25 09:19:21 +02:00
parent 11f3b05534
commit d1a38d8a02
1 changed files with 4 additions and 0 deletions

View File

@ -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()
}