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

Commit 33617020 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix activities cannot be resumed when non-secure keyguard shown"

parents 3f1c7088 3319d020
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -95,13 +95,15 @@ class KeyguardController {
    }

    /**
     * @return {@code true} if 1) Keyguard is showing, not going away, and not being occluded on the
     *         given display, or 2) AOD is showing, {@code false} otherwise.
     * @return {@code true} for default display when AOD is showing. Otherwise, same as
     *         {@link #isKeyguardOrAodShowing(int)}
     * TODO(b/125198167): Replace isKeyguardOrAodShowing() by this logic.
     */
    boolean isKeyguardUnoccludedOrAodShowing(int displayId) {
        return (mKeyguardShowing && !mKeyguardGoingAway && !isDisplayOccluded(displayId))
                || mAodShowing;
        if (displayId == DEFAULT_DISPLAY && mAodShowing) {
            return true;
        }
        return isKeyguardOrAodShowing(displayId);
    }

    /**