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

Commit 705e4190 authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Fix activity minWidth/minHeight policy unit test" into main

parents 605810e1 f61e13b8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -490,6 +490,11 @@ public class ActivityTaskManagerServiceTests extends WindowTestsBase {
                .build();
        final Task task = activity.getTask();
        final TaskDisplayArea tda = task.getDisplayArea();
        // Ensure the display is not a large screen
        if (tda.getConfiguration().smallestScreenWidthDp
                >= WindowManager.LARGE_SCREEN_SMALLEST_SCREEN_WIDTH_DP) {
            resizeDisplay(activity.mDisplayContent, 500, 800);
        }

        // Ignore the activity min width/height for determine multi window eligibility.
        mAtm.mRespectsActivityMinWidthHeightMultiWindow = -1;