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

Commit 260e9838 authored by Steven Ng's avatar Steven Ng
Browse files

Use cellHeightPx to estimate recommended widgets' height

Test: Set grid to 2x2 and open the widgets picker in portrait. Able to
      scroll the recycler view.
Bug: 185915917
Change-Id: I02bb11a999fb1816de6e2410810c4ae6c1da137f
parent 8e64bba9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public final class WidgetsRecommendationTableLayout extends TableLayout {
            List<WidgetItem> widgetItems = recommendedWidgetsInTable.get(i);
            float rowHeight = 0;
            for (int j = 0; j < widgetItems.size(); j++) {
                float previewHeight = widgetItems.get(j).spanY * deviceProfile.allAppsCellHeightPx
                float previewHeight = widgetItems.get(j).spanY * deviceProfile.cellHeightPx
                        * previewScale;
                rowHeight = Math.max(rowHeight, previewHeight + mWidgetCellTextViewsHeight);
            }