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

Commit b15fc7f2 authored by Marzia Favaro's avatar Marzia Favaro
Browse files

Adjust stubs for new getDimmer conditions

Task#getDimmer is now depending on isTranslucentForTransition since
ag/27102803, therefore stub this method too

Bug: 343147794
Test: TransitionTests#testTransientLaunch
Change-Id: I5484f7b3c1ae5090ee005603d7f5291daf0352c6
parent b6b0c62c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1549,8 +1549,10 @@ public class TransitionTests extends WindowTestsBase {
        });
        assertTrue(activity1.isVisible());
        doReturn(false).when(task1).isTranslucent(null);
        doReturn(false).when(task1).isTranslucentForTransition();
        assertTrue(controller.canApplyDim(task1));
        doReturn(true).when(task1).isTranslucent(null);
        doReturn(true).when(task1).isTranslucentForTransition();
        assertFalse(controller.canApplyDim(task1));

        controller.finishTransition(closeTransition);