Merge "Use cellHeightPx to estimate recommended widgets' height" into sc-dev am: e9a0ab33fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14265965 Change-Id: Iade5f2e42cfe91bb2628d7411b48829519d23391
This commit is contained in:
@@ -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