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

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

Added safeguard to make sure Panel is visible when unlocked

Fixes: 134965200
Change-Id: Iebcadc3ef7624a6384cb13e44e9fe0458aae89bc
parent 0b8cb86f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -4737,7 +4737,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
        boolean nowFullyHidden = mAmbientState.isFullyHidden();
        boolean nowHiddenAtAll = mAmbientState.isHiddenAtAll();
        if (nowFullyHidden != wasFullyHidden) {
            setVisibility(mAmbientState.isFullyHidden() ? View.INVISIBLE : View.VISIBLE);
            updateVisibility();
        }
        if (!wasHiddenAtAll && nowHiddenAtAll) {
            resetExposedMenuView(true /* animate */, true /* animate */);
@@ -4751,6 +4751,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
        requestChildrenUpdate();
    }

    private void updateVisibility() {
        boolean shouldShow = !mAmbientState.isFullyHidden() || !onKeyguard();
        setVisibility(shouldShow ? View.VISIBLE : View.INVISIBLE);
    }

    @ShadeViewRefactor(RefactorComponent.STATE_RESOLVER)
    public void notifyHideAnimationStart(boolean hide) {
        // We only swap the scaling factor if we're fully hidden or fully awake to avoid
@@ -5259,6 +5264,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
        onUpdateRowStates();

        mEntryManager.updateNotifications();
        updateVisibility();
    }

    @ShadeViewRefactor(RefactorComponent.SHADE_VIEW)