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

Commit f9856616 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Fix orientation unit test on LS device" into main

parents 65a2a0ab 604bc20e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1819,7 +1819,7 @@ public class DisplayContentTests extends WindowTestsBase {

        final ActivityRecord activity = createActivityRecord(mDisplayContent);
        final ActivityRecord recentsActivity = createActivityRecord(mDisplayContent);
        recentsActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT);
        recentsActivity.setRequestedOrientation(SCREEN_ORIENTATION_NOSENSOR);
        doReturn(mock(RecentsAnimationController.class)).when(mWm).getRecentsAnimationController();

        // Do not rotate if the recents animation is animating on top.