am a038decb: am c2912a66: Merge change 25490 into eclair

Merge commit 'a038decb21419c42a70c83a84c3b8ba152524913'

* commit 'a038decb21419c42a70c83a84c3b8ba152524913':
  Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."
This commit is contained in:
Mike Lockwood
2009-09-17 12:19:22 -07:00
committed by Android Git Automerger
2 changed files with 0 additions and 5 deletions

View File

@@ -361,8 +361,6 @@ public interface WindowManagerPolicy {
public final int OFF_BECAUSE_OF_USER = 1;
/** Screen turned off because of timeout */
public final int OFF_BECAUSE_OF_TIMEOUT = 2;
/** Screen turned off because of proximity sensor */
public final int OFF_BECAUSE_OF_PROXIMITY_SENSOR = 3;
/**
* Magic constant to {@link IWindowManager#setRotation} to not actually

View File

@@ -957,9 +957,6 @@ 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;
}