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
Loading
Please register or sign in to comment