Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf3af808 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a crash when drawing the notification background

Change-Id: Ieb0f23ab98ba36884e3b830db499b15c87852020
parent 86a0af09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
        }