OSDN Git Service

Fix a bug with screen brightness during screen off animation.
authorJeff Brown <jeffbrown@google.com>
Thu, 2 Oct 2014 20:08:05 +0000 (13:08 -0700)
committerJeff Brown <jeffbrown@google.com>
Thu, 2 Oct 2014 20:11:02 +0000 (13:11 -0700)
commitbf4e414cf0d0f512a0929ecd4e662a925d7684f0
treece49ed1615f25135bb01e53408b65d2da28160eb
parent134b62ed14b830b467423082036b3222f84f291c
Fix a bug with screen brightness during screen off animation.

Due to a recent change there was a regression that caused the
screen brightness to be animated down to 0 while the screen
off animation was running.  When the brightness was low this
would cause the screen off animation to be cut short.

This change ensures that we take into account the actual screen
state instead of the desired screen state when making screen
brightness decisions in case we are in the middle of a transition.

The darkness came early.  The pixel fairies trembled.

Bug: 17718416
Change-Id: Ib4b55d61b359abbc70920e324f08a5db07bdd035
services/core/java/com/android/server/display/DisplayPowerController.java