From bf3af808d0bb1a32aeb22677ebbc93507b56e7e2 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 20 Feb 2015 15:21:31 +0100 Subject: [PATCH] Fixed a crash when drawing the notification background Change-Id: Ieb0f23ab98ba36884e3b830db499b15c87852020 --- .../android/systemui/statusbar/NotificationBackgroundView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java index 0fc46e9c701b0..01aa8d13a0aed 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); }