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

Commit 5423cf08 authored by Garfield Tan's avatar Garfield Tan
Browse files

Use a display ID that's really invalid.

When WMS for WmTests is set up, it gets the display info from real
DisplayManagerService, which may not only have 1 display when the test
is run. Therefore use Integer#MAX_VALUE to be safe.

Bug: 145836235
Test: atest ActivityRecordTests#testCanBeLaunchedOnDisplay
Change-Id: Ib809f895a86eafe1c1f5bbc511b1d4f0dec31d82
parent 654af761
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ public class ActivityRecordTests extends ActivityTestsBase {
        // An activity can be launched on default display.
        assertTrue(activity.canBeLaunchedOnDisplay(DEFAULT_DISPLAY));
        // An activity cannot be launched on a non-existent display.
        assertFalse(activity.canBeLaunchedOnDisplay(DEFAULT_DISPLAY + 1));
        assertFalse(activity.canBeLaunchedOnDisplay(Integer.MAX_VALUE));
    }

    @Test