Skip to content

Commit 4e68bc9

Browse files
committed
fixing a widget resize glitch on Android 13+
1 parent 5094f52 commit 4e68bc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
445445
widgetView.updateAppWidgetSize(Bundle(), sizes)
446446
} else {
447447
widgetView.updateAppWidgetSize(Bundle(), widgetWidth, widgetHeight, widgetWidth, widgetHeight)
448-
widgetView.layoutParams?.width = widgetWidth
449-
widgetView.layoutParams?.height = widgetHeight
450448
}
451449

450+
widgetView.layoutParams?.width = widgetWidth
451+
widgetView.layoutParams?.height = widgetHeight
452452
return Size(widgetWidth, widgetHeight)
453453
}
454454

0 commit comments

Comments
 (0)