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

Commit 267270e8 authored by Steven Ng's avatar Steven Ng
Browse files

Align widgets previews top to the table layout

Test: Manual

Bug: 179797520
Change-Id: I0716432e72327b825619bc35d55cb74d9621ee6a
parent f3814eea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable {

        WidgetsTableUtils.groupWidgetItemsIntoTable(widgets, mMaxHorizontalSpan).forEach(row -> {
            TableRow tableRow = new TableRow(getContext());
            tableRow.setGravity(Gravity.CENTER_VERTICAL);
            tableRow.setGravity(Gravity.TOP);
            row.forEach(widgetItem -> {
                WidgetCell widget = addItemCell(tableRow);
                widget.setPreviewSize(widgetItem.spanX, widgetItem.spanY);
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ public final class WidgetsListTableViewHolderBinder
                tableRow = (TableRow) table.getChildAt(i);
            } else {
                tableRow = new TableRow(table.getContext());
                tableRow.setGravity(Gravity.CENTER_VERTICAL);
                tableRow.setGravity(Gravity.TOP);
                table.addView(tableRow);
            }
            if (tableRow.getChildCount() > widgetItems.size()) {