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

Commit c3457912 authored by shawnlin's avatar shawnlin
Browse files

Fixed notification shelf not fully visible on lockscreen

Remove the height limitation of mBackgroundBounds.bottom, and allow min
height of NSSL to be shelf size in keyguard when qs panel fully
expanded.

Test: runtest systemui
Change-Id: I74755f8eefa70beec32db2a66a7a425b7fff0276
Fixes: 79202907
parent 09a0c2d5
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -727,7 +727,7 @@ public class NotificationStackScrollLayout extends ViewGroup
    }
    }


    private void updateAlgorithmLayoutMinHeight() {
    private void updateAlgorithmLayoutMinHeight() {
        mAmbientState.setLayoutMinHeight(mQsExpanded && !onKeyguard() || isHeadsUpTransition()
        mAmbientState.setLayoutMinHeight(mQsExpanded || isHeadsUpTransition()
                ? getLayoutMinHeight() : 0);
                ? getLayoutMinHeight() : 0);
    }
    }


@@ -2451,7 +2451,6 @@ public class NotificationStackScrollLayout extends ViewGroup
            }
            }
            int finalHeight = ExpandableViewState.getFinalActualHeight(lastView);
            int finalHeight = ExpandableViewState.getFinalActualHeight(lastView);
            int finalBottom = finalTranslationY + finalHeight - lastView.getClipBottomAmount();
            int finalBottom = finalTranslationY + finalHeight - lastView.getClipBottomAmount();
            finalBottom = Math.min(finalBottom, getHeight());
            if (mAnimateNextBackgroundBottom
            if (mAnimateNextBackgroundBottom
                    || mBottomAnimator == null && mCurrentBounds.bottom == finalBottom
                    || mBottomAnimator == null && mCurrentBounds.bottom == finalBottom
                    || mBottomAnimator != null && mEndAnimationRect.bottom == finalBottom) {
                    || mBottomAnimator != null && mEndAnimationRect.bottom == finalBottom) {
@@ -2460,7 +2459,6 @@ public class NotificationStackScrollLayout extends ViewGroup
            } else {
            } else {
                bottom = (int) (lastView.getTranslationY() + lastView.getActualHeight()
                bottom = (int) (lastView.getTranslationY() + lastView.getActualHeight()
                        - lastView.getClipBottomAmount());
                        - lastView.getClipBottomAmount());
                bottom = Math.min(bottom, getHeight());
            }
            }
        } else {
        } else {
            top = mTopPadding;
            top = mTopPadding;
@@ -2473,7 +2471,7 @@ public class NotificationStackScrollLayout extends ViewGroup
            top = Math.max(0, top);
            top = Math.max(0, top);
        }
        }
        mBackgroundBounds.top = top;
        mBackgroundBounds.top = top;
        mBackgroundBounds.bottom = Math.min(getHeight(), Math.max(bottom, top));
        mBackgroundBounds.bottom = Math.max(bottom, top);
    }
    }


    private ActivatableNotificationView getFirstPinnedHeadsUp() {
    private ActivatableNotificationView getFirstPinnedHeadsUp() {