fixing a widget resize glitch on Android 13+
This commit is contained in:
parent
5094f52d7c
commit
4e68bc93ef
|
@ -445,10 +445,10 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
||||||
widgetView.updateAppWidgetSize(Bundle(), sizes)
|
widgetView.updateAppWidgetSize(Bundle(), sizes)
|
||||||
} else {
|
} else {
|
||||||
widgetView.updateAppWidgetSize(Bundle(), widgetWidth, widgetHeight, widgetWidth, widgetHeight)
|
widgetView.updateAppWidgetSize(Bundle(), widgetWidth, widgetHeight, widgetWidth, widgetHeight)
|
||||||
widgetView.layoutParams?.width = widgetWidth
|
|
||||||
widgetView.layoutParams?.height = widgetHeight
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
widgetView.layoutParams?.width = widgetWidth
|
||||||
|
widgetView.layoutParams?.height = widgetHeight
|
||||||
return Size(widgetWidth, widgetHeight)
|
return Size(widgetWidth, widgetHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue