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

Commit 3b6b5b7f authored by Maryam Dehaini's avatar Maryam Dehaini
Browse files

Sets TaskInfo#isVisibleRequested in DesktopModeWindowDecorationTests

CaptionHandleRepository#notifyCaptionChanged will only run if the Task#isVisibleRequested is true.

Bug: 401345420
Test: atest DesktopModeWindowDecorationTests
Flag:com.android.window.flags.skip_decor_view_relayout_when_closing_bugfix
Change-Id: I1732e79091767f537bb73d55027076aa49fc3d99
parent 4913fc9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1916,6 +1916,7 @@ public class DesktopModeWindowDecorationTests extends ShellTestCase {
                .setTaskDescriptionBuilder(taskDescriptionBuilder)
                .setVisible(visible)
                .build();
        taskInfo.isVisibleRequested = visible;
        taskInfo.realActivity = new ComponentName("com.android.wm.shell.windowdecor",
                "DesktopModeWindowDecorationTests");
        taskInfo.baseActivity = new ComponentName("com.android.wm.shell.windowdecor",