am 71747669: am 662034f1: am 7f76ff2c: Merge "Suppress redundant power key presses while turning screen on." into lmp-dev
* commit '7174766951ebccebb2c77d88725b5cae6c3828c8': Suppress redundant power key presses while turning screen on.
This commit is contained in:
@@ -4421,7 +4421,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mPowerKeyTriggered = false;
|
||||
cancelPendingScreenshotChordAction();
|
||||
if (interceptPowerKeyUp(canceled || mPendingPowerKeyUpCanceled)) {
|
||||
powerShortPress(event.getEventTime());
|
||||
if (mScreenOnEarly && !mScreenOnFully) {
|
||||
Slog.i(TAG, "Suppressed redundant power key press while "
|
||||
+ "already in the process of turning the screen on.");
|
||||
} else {
|
||||
powerShortPress(event.getEventTime());
|
||||
}
|
||||
isWakeKey = false;
|
||||
}
|
||||
mPendingPowerKeyUpCanceled = false;
|
||||
|
||||
Reference in New Issue
Block a user