diff options
author | Prashant Malani <pmalani@google.com> | 2014-11-13 14:04:00 -0800 |
---|---|---|
committer | Prashant Malani <pmalani@google.com> | 2014-11-13 15:23:27 -0800 |
commit | 33538249f26f0cc637eac636f3712f972916595d (patch) | |
tree | 38a63070cfd61000ddd70acba4a1e7a15327b776 /native/android | |
parent | 4cc7bbc9fd937c6f25962fd6971e77773114aff2 (diff) | |
download | frameworks_base-33538249f26f0cc637eac636f3712f972916595d.zip frameworks_base-33538249f26f0cc637eac636f3712f972916595d.tar.gz frameworks_base-33538249f26f0cc637eac636f3712f972916595d.tar.bz2 |
Don't animate screen brightness if there is a pending off transition
When the DisplayPowerRequest policy is POLICY_OFF, a screen state
transition animation to DISPLAY_OFF is intiated. However, in
updatePowerState() the screen brightness setting, based on the current
display state, is set to normal brightness and an animation is
triggered. This causes a transient flash on some devices, which are
transitioning from a dimmed screen to screen off.
This change checks for a pending screen off transition before
triggering a screen brightness animation, to prevent the flashes.
Bug: 18136235
Change-Id: I37f9fb28b3ec8a4fdbb45920c40d25ebd50c220b
Diffstat (limited to 'native/android')
0 files changed, 0 insertions, 0 deletions