commit | 27716724ce37b95e6fb741feeaeb526a6f5c55e7 | [log] [tgz] |
---|---|---|
author | shawnlin <shawnlin@google.com> | Wed Apr 17 20:09:45 2019 +0800 |
committer | shawnlin <shawnlin@google.com> | Wed Apr 17 20:09:45 2019 +0800 |
tree | 4d40180701a38fb4bea30720c41aa36937e6cfdb | |
parent | 1d4854055ed290c0d00a9972f31c0f7cfb5e0cb4 [diff] [blame] |
Fixed notification background shifted in landscape Using getLocationInWindow() will cause an extra distance(from 0 to the left of the NotificationStackScrollLayout) to the left bound of the background. Remove getLocationInWindow() to fix it. Fixes: 130502182 Test: manual - swipe an notification in landscape Change-Id: I8f12a71a6820df1a1e26d954d5af95eededfb685
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 562e535..13ff81f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
@@ -2479,9 +2479,8 @@ */ @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) private void updateBackgroundBounds() { - getLocationInWindow(mTempInt2); - int left = mTempInt2[0] + mSidePaddings; - int right = mTempInt2[0] + getWidth() - mSidePaddings; + int left = mSidePaddings; + int right = getWidth() - mSidePaddings; for (NotificationSection section : mSections) { section.getBounds().left = left; section.getBounds().right = right;