Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28258376 authored by William Leshner's avatar William Leshner Committed by Automerger Merge Worker
Browse files

Merge "Remove a hack to fix a short power button press behavior." into...

Merge "Remove a hack to fix a short power button press behavior." into tm-qpr-dev am: 6cb72a51 am: f369433f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20716073



Change-Id: I044d6797f70687fa60409ce2084bee3668235319
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 52ea938a f369433f
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1056,13 +1056,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            return;
        }

        // Don't dream if the user isn't user zero.
        // TODO(b/261907079): Move this check to DreamManagerService#canStartDreamingInternal().
        if (ActivityManager.getCurrentUser() != UserHandle.USER_SYSTEM) {
            noDreamAction.run();
            return;
        }

        final DreamManagerInternal dreamManagerInternal = getDreamManagerInternal();
        if (dreamManagerInternal == null || !dreamManagerInternal.canStartDreaming(isScreenOn)) {
            noDreamAction.run();