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

Commit c357ca20 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Attempt to fix blank lockscreen.

Bug: 14280857
Change-Id: Icf458040b1a0b0a412981acf7b522d04c046a5f8
parent 97efc15b
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -2995,13 +2995,21 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
    }

    private void instantExpandNotificationsPanel() {

        // Make our window larger.
        mStatusBarWindowManager.setStatusBarExpanded(true);

        // Wait for window manager to pickup the change, so we know the maximum height of the panel
        // then.
        mNotificationPanel.getViewTreeObserver().addOnGlobalLayoutListener(
                new ViewTreeObserver.OnGlobalLayoutListener() {
            @Override
            public void onGlobalLayout() {
                if (mStatusBarWindow.getHeight() != getStatusBarHeight()) {
                    mNotificationPanel.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                    mNotificationPanel.setExpandedFraction(1);
                }
            }
        });
    }