Loading core/java/android/widget/Switch.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
core/java/android/widget/Switch.java +1 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading