Merge "Do not go to dream on power button press when screen is off." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
20e330dc28
@@ -975,12 +975,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
powerMultiPressAction(eventTime, interactive, mTriplePressOnPowerBehavior);
|
powerMultiPressAction(eventTime, interactive, mTriplePressOnPowerBehavior);
|
||||||
} else if (count > 3 && count <= getMaxMultiPressPowerCount()) {
|
} else if (count > 3 && count <= getMaxMultiPressPowerCount()) {
|
||||||
Slog.d(TAG, "No behavior defined for power press count " + count);
|
Slog.d(TAG, "No behavior defined for power press count " + count);
|
||||||
} else if (count == 1 && interactive) {
|
} else if (count == 1 && interactive && !beganFromNonInteractive) {
|
||||||
if (beganFromNonInteractive) {
|
|
||||||
// The screen off case, where we might want to start dreaming on power button press.
|
|
||||||
attemptToDreamFromShortPowerButtonPress(false, () -> {});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (mSideFpsEventHandler.shouldConsumeSinglePress(eventTime)) {
|
if (mSideFpsEventHandler.shouldConsumeSinglePress(eventTime)) {
|
||||||
Slog.i(TAG, "Suppressing power key because the user is interacting with the "
|
Slog.i(TAG, "Suppressing power key because the user is interacting with the "
|
||||||
+ "fingerprint sensor");
|
+ "fingerprint sensor");
|
||||||
|
|||||||
Reference in New Issue
Block a user