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

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

Skip screen animation if it is off

This is similar to legacy WindowManagerService#startFreezingDisplay
that only runs animation when screen is on.

So if display is resized or rotated when screen off, it can go the
end state directly, which is more efficiency and also avoid seeing
partial animation when turning screen on.

This may slightly reduce some latency of display switch.

Bug: 282110960
Bug: 281067141
Test: On a device which support display switch.
      Launch an activity that keeps screen on.
      Turn on auto rotation for inner display, off for outer.
      Rotate inner display to 90 degree.
      Switch to outer display with a nosensor activity.
      The outer display should show in rotation 0 directly
      instead of additional rotation animation.
Change-Id: I5cff845810ef6da69adb88be2a24858388be2acf
parent d62eae97
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