Allow device rotation on glanceable hub
Allow screen rotation for mobile hub where keyguard rotation is not allowed by default. In NotificationShadeWindow, update layout params orientation to USER if one of the conditions met: 1) idle on hub 2)transitioning to hub 3)transitioning from hub to dream. Fix bouncer not staying open unless user scrolls up and then right as showing bouncer will rotate the screen to portrait. In BouncerSwipeTouchHandler#onScroll listener, once user scrolls up and past a small screen percentage, show bouncer scrimmed without tracking user dragging. This ensures bouncer won't hide after rotation. Bug: b/392708288 Test: atest BouncerSwipeTouchHandlerTest Test: manually on foldable Flag: com.android.systemui.glanceable_hub_v2 Change-Id: Ifb3160afc07c94c56371f20fa896b730ed716418
Loading
Please register or sign in to comment