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

Commit 6f6e64a7 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Add null bg check to switch"

parents 5c1d4327 aec98fee
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);
        }