diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 5275e27a2c5ae..7370c4c1c0d1f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -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; + getLocationInWindow(mTempInt2); + mBackgroundBounds.left = mTempInt2[0] + mSidePaddings; + mBackgroundBounds.right = mTempInt2[0] + getWidth() - mSidePaddings; + if (!mIsExpanded) { mBackgroundBounds.top = 0; mBackgroundBounds.bottom = 0;