OSDN Git Service

A better solution for ignoring user activity while the screen is animating off.
authorMike Lockwood <lockwood@android.com>
Wed, 28 Oct 2009 03:07:25 +0000 (23:07 -0400)
committerMike Lockwood <lockwood@android.com>
Wed, 28 Oct 2009 03:13:39 +0000 (23:13 -0400)
commit05067120682487df7121b8d2b6f7b02deeb9cd93
tree6cc7190003a971432fd7beaa1d0060caf18f0b46
parent8321bdf4dd85b81224d84b0d7a2f53218bf1a250
A better solution for ignoring user activity while the screen is animating off.

Fixes a deadlock that occurred because mAnimatingScreenOff was left set to true
after aborting turning off the screen.
This change removes the mAnimatingScreenOff flag and checks for
(mScreenBrightness.animating && mScreenBrightness.targetValue == 0) instead.

Fixes bug b/2219706

Change-Id: I081f08c14ad7585a953fb567867238b1f3db841f
Signed-off-by: Mike Lockwood <lockwood@android.com>
services/java/com/android/server/PowerManagerService.java