am c2912a66: Merge change 25490 into eclair
Merge commit 'c2912a662d984e2f23187fa31e7e71122d9472d9' into eclair-plus-aosp * commit 'c2912a662d984e2f23187fa31e7e71122d9472d9': Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."
This commit is contained in:
@@ -361,8 +361,6 @@ public interface WindowManagerPolicy {
|
|||||||
public final int OFF_BECAUSE_OF_USER = 1;
|
public final int OFF_BECAUSE_OF_USER = 1;
|
||||||
/** Screen turned off because of timeout */
|
/** Screen turned off because of timeout */
|
||||||
public final int OFF_BECAUSE_OF_TIMEOUT = 2;
|
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
|
* Magic constant to {@link IWindowManager#setRotation} to not actually
|
||||||
|
|||||||
@@ -957,9 +957,6 @@ class PowerManagerService extends IPowerManager.Stub
|
|||||||
|
|
||||||
private void sendNotificationLocked(boolean on, int why)
|
private void sendNotificationLocked(boolean on, int why)
|
||||||
{
|
{
|
||||||
if (mProximitySensorActive) {
|
|
||||||
why = WindowManagerPolicy.OFF_BECAUSE_OF_PROXIMITY_SENSOR;
|
|
||||||
}
|
|
||||||
if (!on) {
|
if (!on) {
|
||||||
mStillNeedSleepNotification = false;
|
mStillNeedSleepNotification = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user