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

Commit aec98fee authored by Alan Viverette's avatar Alan Viverette
Browse files

Add null bg check to switch

BUG: 14271950
Change-Id: I6f4833c916ddc8d939f5bfa6ab7b1ed1993e862e
parent 40619ae8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -799,7 +799,7 @@ public class Switch extends CompoundButton {
        thumbDrawable.setBounds(thumbLeft, switchTop, thumbRight, switchBottom);

        final Drawable background = getBackground();
        if (background.supportsHotspots()) {
        if (background != null && background.supportsHotspots()) {
            background.setHotspotBounds(thumbLeft, switchTop, thumbRight, switchBottom);
        }