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

Commit bfc8b2d2 authored by Chris Li's avatar Chris Li Committed by Automerger Merge Worker
Browse files

Merge "Fix locked second screen on boot" into rvc-dev am: 2455e984 am: 09960b94 am: a6d309d0

Change-Id: I7ba1e3e5a866fb87bb95439264d32bef3b09e2b4
parents ab413ff4 a6d309d0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -126,12 +126,14 @@ public class KeyguardDisplayManager {
        final int displayId = display.getDisplayId();
        Presentation presentation = mPresentations.get(displayId);
        if (presentation == null) {
            presentation = new KeyguardPresentation(mContext, display, mInjectableInflater);
            presentation.setOnDismissListener(dialog -> {
                if (null != mPresentations.get(displayId)) {
            final Presentation newPresentation =
                    new KeyguardPresentation(mContext, display, mInjectableInflater);
            newPresentation.setOnDismissListener(dialog -> {
                if (newPresentation.equals(mPresentations.get(displayId))) {
                    mPresentations.remove(displayId);
                }
            });
            presentation = newPresentation;
            try {
                presentation.show();
            } catch (WindowManager.InvalidDisplayException ex) {