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

Commit b3a6f1e9 authored by Xiyuan Xia's avatar Xiyuan Xia Committed by Selim Cinek
Browse files

Update bottom area alpha when stack height changes

Bottom area alpha depends on stack scroller's notification top Y
which depends on stack translation which changes when stack height
changes. Thus the bottom area alpha needs to be updated when stack
height changes.

Bug: 20457060
Change-Id: Ibcc95c830a83737732aa15147cd82d21f2ee9161
parent de8c7526
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ public class NotificationPanelView extends PanelView implements
        } else if (!mQsExpanded) {
            setQsExpansion(mQsMinExpansionHeight + mLastOverscroll);
        }
        mNotificationStackScroller.setStackHeight(getExpandedHeight());
        updateStackHeight(getExpandedHeight());
        updateHeader();
        mNotificationStackScroller.updateIsSmallScreen(
                mHeader.getCollapsedHeight() + mQsPeekHeight);
@@ -1457,7 +1457,7 @@ public class NotificationPanelView extends PanelView implements
            setQsExpansion(mQsMinExpansionHeight
                    + t * (getTempQsMaxExpansion() - mQsMinExpansionHeight));
        }
        mNotificationStackScroller.setStackHeight(expandedHeight);
        updateStackHeight(expandedHeight);
        updateHeader();
        updateUnlockIcon();
        updateNotificationTranslucency();
@@ -2241,4 +2241,9 @@ public class NotificationPanelView extends PanelView implements
        mScrollView.setTranslationX(translation);
        mHeader.setTranslationX(translation);
    }

    private void updateStackHeight(float stackHeight) {
        mNotificationStackScroller.setStackHeight(stackHeight);
        updateKeyguardBottomAreaAlpha();
    }
}