From c0e4dcf238186e468786498f57ff441340ba8fab Mon Sep 17 00:00:00 2001 From: Shamali P Date: Mon, 6 May 2024 15:48:37 +0000 Subject: [PATCH] Readjust the available size for the recommendations in 2-pane sheet Now that we exclude the space taken by size string and description, offsetting the size provided to the recommendation table to keep the widgets within non-scrollable view as much possible. Bug: N/A Test: Screenshot Flag: N/A Change-Id: I0193cd1ba5de0b0ff98dab9aeb352264afd3ff3a --- .../android/launcher3/widget/picker/WidgetsTwoPaneSheet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/widget/picker/WidgetsTwoPaneSheet.java b/src/com/android/launcher3/widget/picker/WidgetsTwoPaneSheet.java index 79ddadc317..5292ee2db9 100644 --- a/src/com/android/launcher3/widget/picker/WidgetsTwoPaneSheet.java +++ b/src/com/android/launcher3/widget/picker/WidgetsTwoPaneSheet.java @@ -64,7 +64,7 @@ public class WidgetsTwoPaneSheet extends WidgetsFullSheet { // This ratio defines the max percentage of content area that the recommendations can display // with respect to the bottom sheet's height. - private static final float RECOMMENDATION_SECTION_HEIGHT_RATIO_TWO_PANE = 0.75f; + private static final float RECOMMENDATION_SECTION_HEIGHT_RATIO_TWO_PANE = 0.60f; private FrameLayout mSuggestedWidgetsContainer; private WidgetsListHeader mSuggestedWidgetsHeader; private PackageUserKey mSuggestedWidgetsPackageUserKey;