Skip to content
Commit f74a62ac authored by Oleg Petsjonkin's avatar Oleg Petsjonkin
Browse files

Fixing ColorFade animation in landscape mode

Bug: b/277612338
Test: manual testing

Test steps:
Increase animation duration: set DisplayPowerController2.COLOR_FADE_OFF_ANIMATION_DURATION_MILLIS value to e.g 2000 (2s.)
Set ColorFade.MODE_FADE mode: Hardcode  DisplayPowerController2.mColorFadeFadesConfig = true
Set ColorFade.MODE_COOL_DOWN mode: Hardcode  DisplayPowerController2.mColorFadeFadesConfig = false

Tested MODE_FADE/MODE_COOL_DOWN on tablet/phone

Test steps:
1) lauch application suppoting both portait and landscape modes (e.g Chrome)
2) Rotate device to portait mode
3) Turn on and Turn off device using power button
4) Verify off animation plays
5) Rotate device to landscape mode
8) Turn on and Turn off device using power button
9) Verify off animation plays
10) Verify that animation play (in ColorFade.MODE_FADE animation rotates, in ColorFade.MODE_COOL_DOWN animation statys locked)

Change-Id: I950d8b6c3c36037d49eadb1e164391a53482ce97
parent 66a64d23
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