am 23d153cf: Revert "Don\'t activate keyguard if screen is turned off while proximity sensor is active."
Merge commit '23d153cf0d17762cee81984b7adf2009a40dc5c6' * commit '23d153cf0d17762cee81984b7adf2009a40dc5c6': Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."
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