diff options
author | Adrian Roos <roosa@google.com> | 2015-06-10 16:42:53 -0700 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2015-06-10 17:18:15 -0700 |
commit | cd55f43db60c2f641252d829bd3f532358625834 (patch) | |
tree | 35dce74ec5d84c7a3640d6989455eceeaa747bc8 | |
parent | 2285308629a6826c63fbaf5174207accf1a57e91 (diff) | |
download | frameworks_base-cd55f43db60c2f641252d829bd3f532358625834.zip frameworks_base-cd55f43db60c2f641252d829bd3f532358625834.tar.gz frameworks_base-cd55f43db60c2f641252d829bd3f532358625834.tar.bz2 |
Fix notification bounds on screen
Bug: 21763049
Change-Id: Ifcc5bd7258c00ebd3a64ca4a4edd894e3baf0ccc
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java index 3feec9e..e12c226 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java @@ -339,6 +339,12 @@ public abstract class ExpandableView extends FrameLayout { outRect.top += getTranslationY() + getClipTopAmount(); } + @Override + public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { + super.getBoundsOnScreen(outRect, clipToParent); + outRect.bottom = (int) (outRect.top + getActualHeight()); + } + public int getContentHeight() { return mActualHeight - getBottomDecorHeight(); } |