Fix testRespectTopFullscreenOrientation failed on tablet

The test failed on tablet and foldable devices because the devices
are in landscape mode by default. Once the activity in the test
updates the orientation to portrait, the display will be in transition
mode and unable to update the next orientation request.

Bug: 295866346
Test: atest ActivityRecordTests
Change-Id: I2d7e080418f893b8a839b9427f19682bf2f32228
2 files changed