Allow to use fixed rotation with remote swipe-unlock animation
- Remove the restriction of no animation to adopt fixed rotation. Because the old case no longer happens. - Always use orientation of keyguard if its window is visible and device is going to sleep or is sleeping. This avoid unexpected orientation change such as entering portrait AOD while the display is landscape due to the requested orientation of top app. - If device is fully awake, do not use the orientation of keyguard if it is going away or is not showing. So if keyguard cancels the showing state, its orientation won't affect the top app. - Remove unused states and methods in WMS. Bug: 191446147 Test: atest DisplayContentTests#testOrientationDefinedByKeyguard Test: With remote keyguard swipe animation enabled. Launch a landscape app and lock device. Unlock by swipe. The landscape app should show in its original orientation directly. Change-Id: I77708fa9e28cf61c9dfd7aef8da77c3169ce5ad9
Loading
Please register or sign in to comment