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