Skip to content
Commit e0902814 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Fix a race condition that resulted in the screen coming on without the...


Fix a race condition that resulted in the screen coming on without the brightness set to the correct value.

Do not cancel screen brightness animation in forceUserActivityLocked unless screen is turning off.
Also not turn the screen on if PowerManager.preventScreenOn(false) is called while proximity sensor is active.

Fixes b/2254818 (dim display) where due to a race condition the screen is stuck in a dim state.

Change-Id: If6f805609c8d463631b9e22805e5242714ce34c0
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 0e5bb7f1
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