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

Commit 85380a56 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fix incorrect background bounds set by stackscroll view" into pi-dev am: 565ea8f3

am: 3fa4231d

Change-Id: I20cfa59d3a6ee46efd29229d771bee358fab8e93
parents ecbb3144 3fa4231d
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -2415,16 +2415,10 @@ public class NotificationStackScrollLayout extends ViewGroup
     * Update the background bounds to the new desired bounds
     */
    private void updateBackgroundBounds() {
        if (mAmbientState.isPanelFullWidth()) {
            mBackgroundBounds.left = 0;
            mBackgroundBounds.right = getWidth();
        } else {
        getLocationInWindow(mTempInt2);
            mBackgroundBounds.left = mTempInt2[0];
            mBackgroundBounds.right = mTempInt2[0] + getWidth();
        }
        mBackgroundBounds.left += mSidePaddings;
        mBackgroundBounds.right -= mSidePaddings;
        mBackgroundBounds.left = mTempInt2[0] + mSidePaddings;
        mBackgroundBounds.right = mTempInt2[0] + getWidth() - mSidePaddings;

        if (!mIsExpanded) {
            mBackgroundBounds.top = 0;
            mBackgroundBounds.bottom = 0;