Skip to content
Commit 4b6d4c81 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 6f383b1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment