diff options
author | Selim Cinek <cinek@google.com> | 2015-02-20 15:21:31 +0100 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2015-02-20 15:21:31 +0100 |
commit | bf3af808d0bb1a32aeb22677ebbc93507b56e7e2 (patch) | |
tree | 73debc2f2d36327d6062b48a654667ee54737758 /packages | |
parent | 86a0af099e1d6c683da8b340fc86942ef20e546a (diff) | |
download | frameworks_base-bf3af808d0bb1a32aeb22677ebbc93507b56e7e2.zip frameworks_base-bf3af808d0bb1a32aeb22677ebbc93507b56e7e2.tar.gz frameworks_base-bf3af808d0bb1a32aeb22677ebbc93507b56e7e2.tar.bz2 |
Fixed a crash when drawing the notification background
Change-Id: Ieb0f23ab98ba36884e3b830db499b15c87852020
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationBackgroundView.java | 2 |
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); } |