Fix crash when adding launcher widget
This commit is contained in:
parent
8f142085e8
commit
8a3b8284e7
@ -205,7 +205,7 @@ class WidgetsView @JvmOverloads constructor(
|
|||||||
title(R.string.widget_add_widget)
|
title(R.string.widget_add_widget)
|
||||||
listItems(items = internalWidgets.map { it.label }) { dialog, index, _ ->
|
listItems(items = internalWidgets.map { it.label }) { dialog, index, _ ->
|
||||||
val widget = internalWidgets[index]
|
val widget = internalWidgets[index]
|
||||||
val view = WidgetView(context)
|
val view = WidgetView(this@WidgetsView.context)
|
||||||
val params = LayoutParams(
|
val params = LayoutParams(
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
ViewGroup.LayoutParams.WRAP_CONTENT
|
ViewGroup.LayoutParams.WRAP_CONTENT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user