Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6c0bdb1 authored by Kshitij's avatar Kshitij
Browse files

fix!: Use iconSizePx to render part of widget, to determine real height

- Fixes widgets not laid out on mobile
parent abe8e3d7
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -617,7 +617,11 @@ class WidgetContainer(context: Context, attrs: AttributeSet?) :

                    for (i in 0 until adapter.itemCount) {
                        if (layoutManager.spanCount == 1) {
                            totalHeight[0] += adapter.getWidgets()[i].measuredHeight
                            totalHeight[0] +=
                                adapter
                                    .getWidgets()[i]
                                    .measuredHeight
                                    .coerceAtLeast(launcher.deviceProfile.iconSizePx)
                            continue
                        }
                        val viewHolder = recyclerView.findViewHolderForAdapterPosition(i)