Fixed a crash when drawing the notification background

Change-Id: Ieb0f23ab98ba36884e3b830db499b15c87852020
This commit is contained in:
Selim Cinek
2015-02-20 15:21:31 +01:00
parent 86a0af099e
commit bf3af808d0

View File

@@ -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);
}