Override SCREEN_ORIENTATION_LOCKED to portrait

Splash screen initially requests SCREEN_ORIENTATION_LOCKED and gets
letterboxed. After splash screen is visible, app then requests portrait
orientation, making splash screen flicker.

If user applies aspect ratio, we should override
SCREEN_ORIENTATION_LOCKED to portrait as we will normally pillarbox apps
with user aspect ratio override.

Fix: 300916196
Test: atest LetterboxUiControllerTest
Change-Id: I1500df188e4eae02a83a64a3e3edecbada2ab8d2
2 files changed