diff options
author | Selim Cinek <cinek@google.com> | 2015-02-23 14:47:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-02-23 14:47:04 +0000 |
commit | 91a4e74101a345b65189625780121f04c5931142 (patch) | |
tree | 39702a596720f542264c29f55e8b735c2caf6890 | |
parent | 19aff1e1fddb9fb09640a75d7429568add957905 (diff) | |
parent | bf3af808d0bb1a32aeb22677ebbc93507b56e7e2 (diff) | |
download | frameworks_base-91a4e74101a345b65189625780121f04c5931142.zip frameworks_base-91a4e74101a345b65189625780121f04c5931142.tar.gz frameworks_base-91a4e74101a345b65189625780121f04c5931142.tar.bz2 |
Merge "Fixed a crash when drawing the notification background"
-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); } |