diff --git a/res/layout/switch_bar.xml b/res/layout/switch_bar.xml index 8b69a1d1af2..11d7306fb7b 100644 --- a/res/layout/switch_bar.xml +++ b/res/layout/switch_bar.xml @@ -43,7 +43,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:background="@null" android:theme="@style/ThemeOverlay.SwitchBar.Settings" /> diff --git a/src/com/android/settings/widget/SwitchBar.java b/src/com/android/settings/widget/SwitchBar.java index e998e795ac4..7bf6a835507 100644 --- a/src/com/android/settings/widget/SwitchBar.java +++ b/src/com/android/settings/widget/SwitchBar.java @@ -117,7 +117,6 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC lp = (MarginLayoutParams) mSwitch.getLayoutParams(); lp.setMarginEnd(switchBarMarginEnd); setBackgroundColor(switchBarBackgroundColor); - mSwitch.setBackgroundColor(switchBarBackgroundColor); addOnSwitchChangeListener(new OnSwitchChangeListener() { @Override