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

Commit 417912a3 authored by Coco Duan's avatar Coco Duan
Browse files

Support dream starting in landscape on mobile

This change enables dream to start in the phone's current orientation
regardless of auto-rotation setting.
In NotificationShadeWindow, update layout orientation to SENSOR when
keyguard starts transitioning to dream or finishes on dream,
preventing an intermediate rotation to portrait during the transition.

Apply the same update to the glanceable hub, setting its layout
orientation to SENSOR as well.

Fixes: b/394842694
Fixes: b/402193097
Test: atest NotificationShadeWindowControllerImplTest
Test: atest NotificationShadeWindowModelTest
Flag: android.service.dreams.dreams_v2
Change-Id: I2d5253250ce91336d0c874d34d8c887bda6205e9
parent 412ec48c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment