Merge "Use cellHeightPx to estimate recommended widgets' height" into sc-dev

This commit is contained in:
Steven Ng authored and Android (Google) Code Review committed 2021-04-21 16:29:18 +00:00
commit e9a0ab33fa
1 file changed
+1 -1
@@ -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);
}