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

Commit 55f1a39c authored by Shamali P's avatar Shamali P
Browse files

Update the available size for suggestions in small landscape heights.

Bug: 330514207
Test: TAPL test
Flag: N/A
Change-Id: I1e1f43a46f4aa339bcafac013817846d893b0a9b
parent dc40eeae
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();
    }