Skip to content

Commit 5a11d07

Browse files
arcoGenkzsz11
authored andcommitted
keyguard: Do not trigger a wake up when hiding lockscreen
* This piece of code was introduced in commit: Swipe up to unlock when pulsing Change-Id: Ida5adb6a18f3ee992b1d154e10b35ba244f5b712 However, it appears to not be needed and instead causes the device to wakeup right after dozing with no lockscreen set. * Remove it and test with: adb shell am broadcast -a com.android.systemui.doze.pulse com.android.systemui The device can still be unlocked from pulsing state. Change-Id: Ib5c2f930bd4de04cbf8f89f12d046f30c9b32a52
1 parent 89fa002 commit 5a11d07

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,13 +1948,6 @@ public void run() {
19481948
private void handleHide() {
19491949
Trace.beginSection("KeyguardViewMediator#handleHide");
19501950

1951-
// It's possible that the device was unlocked in a dream state. It's time to wake up.
1952-
if (mAodShowing) {
1953-
PowerManager pm = mContext.getSystemService(PowerManager.class);
1954-
pm.wakeUp(SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_GESTURE,
1955-
"com.android.systemui:BOUNCER_DOZING");
1956-
}
1957-
19581951
synchronized (KeyguardViewMediator.this) {
19591952
if (DEBUG) Log.d(TAG, "handleHide");
19601953

0 commit comments

Comments
 (0)