summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-02-23 14:47:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-23 14:47:04 +0000
commit91a4e74101a345b65189625780121f04c5931142 (patch)
tree39702a596720f542264c29f55e8b735c2caf6890 /packages
parent19aff1e1fddb9fb09640a75d7429568add957905 (diff)
parentbf3af808d0bb1a32aeb22677ebbc93507b56e7e2 (diff)
downloadframeworks_base-91a4e74101a345b65189625780121f04c5931142.zip
frameworks_base-91a4e74101a345b65189625780121f04c5931142.tar.gz
frameworks_base-91a4e74101a345b65189625780121f04c5931142.tar.bz2
Merge "Fixed a crash when drawing the notification background"
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java
index 0fc46e9..01aa8d1 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java
@@ -44,7 +44,7 @@ public class NotificationBackgroundView extends View {
}
private void draw(Canvas canvas, Drawable drawable) {
- if (drawable != null) {
+ if (drawable != null && mActualHeight > mClipTopAmount) {
drawable.setBounds(0, mClipTopAmount, getWidth(), mActualHeight);
drawable.draw(canvas);
}