Merge "Use cellHeightPx to estimate recommended widgets' height" into sc-dev
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user