Prevent crash due to missing drawable
This commit is contained in:
parent
924521c405
commit
4f5fda2c52
|
@ -1408,7 +1408,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
||||||
val drawable = if (item.type == ITEM_TYPE_FOLDER) {
|
val drawable = if (item.type == ITEM_TYPE_FOLDER) {
|
||||||
item.toFolder().generateDrawable()
|
item.toFolder().generateDrawable()
|
||||||
} else {
|
} else {
|
||||||
item.drawable!!
|
item.drawable
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.docked) {
|
if (item.docked) {
|
||||||
|
|
Loading…
Reference in New Issue