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

Commit fc22296f authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where the keyguard statusbar could be showing

Test: unlock with AoD on with fingerprint, pull down shade.
Change-Id: I9a5f0f1ae9880f048a3655f5199106cdda03eba5
Fixes: 111127399
parent d54c3a30
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1342,9 +1342,7 @@ public class NotificationPanelView extends PanelView implements
        mQsExpansionHeight = height;
        updateQsExpansion();
        requestScrollerTopPaddingUpdate(false /* animate */);
        if (mKeyguardShowing) {
        updateHeaderKeyguardAlpha();
        }
        if (mStatusBarState == StatusBarState.SHADE_LOCKED
                || mStatusBarState == StatusBarState.KEYGUARD) {
            updateKeyguardBottomAreaAlpha();
@@ -1747,6 +1745,9 @@ public class NotificationPanelView extends PanelView implements
    }

    private void updateHeaderKeyguardAlpha() {
        if (!mKeyguardShowing) {
            return;
        }
        float alphaQsExpansion = 1 - Math.min(1, getQsExpansionFraction() * 2);
        mKeyguardStatusBar.setAlpha(Math.min(getKeyguardContentsAlpha(), alphaQsExpansion)
                * mKeyguardStatusBarAnimateAlpha);