fixing a widget resize glitch on Android 13+

This commit is contained in:
tibbi 2022-10-05 21:29:51 +02:00
parent 5094f52d7c
commit 4e68bc93ef
1 changed files with 2 additions and 2 deletions

View File

@ -445,10 +445,10 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
widgetView.updateAppWidgetSize(Bundle(), sizes)
} else {
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)
}