Fixed a crash when drawing the notification background
Change-Id: Ieb0f23ab98ba36884e3b830db499b15c87852020
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user