Don't activate keyguard if screen is turned off while proximity sensor is active.
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -949,6 +949,9 @@ class PowerManagerService extends IPowerManager.Stub
|
||||
|
||||
private void sendNotificationLocked(boolean on, int why)
|
||||
{
|
||||
if (mProximitySensorActive) {
|
||||
why = WindowManagerPolicy.OFF_BECAUSE_OF_PROXIMITY_SENSOR;
|
||||
}
|
||||
if (!on) {
|
||||
mStillNeedSleepNotification = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user