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

Commit f8cd9531 authored by Shamali Patwa's avatar Shamali Patwa Committed by Android (Google) Code Review
Browse files

Merge "Update the available size for suggestions in small landscape heights." into main

parents 6a8662c5 55f1a39c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -631,6 +631,12 @@ public class WidgetsFullSheet extends BaseWidgetSheet

    @Px
    private float getMaxAvailableHeightForRecommendations() {
        // There isn't enough space to show recommendations in landscape orientation on phones with
        // a full sheet design. Tablets use a two pane picker.
        if (!isTwoPane() && mDeviceProfile.isLandscape) {
            return 0f;
        }

        return (mDeviceProfile.heightPx - mDeviceProfile.bottomSheetTopPadding)
                * getRecommendationSectionHeightRatio();
    }