|
|
@@ -27,18 +27,18 @@ public class OnOffSwitch extends Switch {
|
|
|
protected CompoundButton.OnCheckedChangeListener onCheckedChangeListener;
|
|
|
|
|
|
public OnOffSwitch(Context context) {
|
|
|
-// super(context);
|
|
|
- super(context, null, R.style.OnOffSwitch);
|
|
|
+ super(context);
|
|
|
+// super(context, null, R.style.OnOffSwitch);
|
|
|
init();
|
|
|
}
|
|
|
|
|
|
public OnOffSwitch(Context context, AttributeSet attrs) {
|
|
|
- super(context, attrs, R.style.OnOffSwitch);
|
|
|
+ super(context, attrs);
|
|
|
init();
|
|
|
}
|
|
|
|
|
|
public OnOffSwitch(Context context, AttributeSet attrs, int defStyleAttr) {
|
|
|
- super(context, attrs, R.style.OnOffSwitch);
|
|
|
+ super(context, attrs, defStyleAttr);
|
|
|
init();
|
|
|
}
|
|
|
|