Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."
This reverts commit 4daf9485eca9bab9591bef83dd117cbde1e8beec.
This commit is contained in:
@@ -273,9 +273,8 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
|
||||
|
||||
/**
|
||||
* Called to let us know the screen was turned off.
|
||||
* @param why either {@link WindowManagerPolicy#OFF_BECAUSE_OF_USER},
|
||||
* {@link WindowManagerPolicy#OFF_BECAUSE_OF_TIMEOUT} or
|
||||
* {@link WindowManagerPolicy#OFF_BECAUSE_OF_PROXIMITY_SENSOR}.
|
||||
* @param why either {@link WindowManagerPolicy#OFF_BECAUSE_OF_USER} or
|
||||
* {@link WindowManagerPolicy#OFF_BECAUSE_OF_TIMEOUT}.
|
||||
*/
|
||||
public void onScreenTurnedOff(int why) {
|
||||
synchronized (this) {
|
||||
@@ -306,7 +305,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
|
||||
sender);
|
||||
if (DEBUG) Log.d(TAG, "setting alarm to turn off keyguard, seq = "
|
||||
+ mDelayedShowingSequence);
|
||||
} else if (why != WindowManagerPolicy.OFF_BECAUSE_OF_PROXIMITY_SENSOR) {
|
||||
} else {
|
||||
doKeyguard();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user