Make all the Settings Switches appear again

- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
This commit is contained in:
Fabrice Di Meglio
2014-04-18 16:38:26 -07:00
parent 255743990c
commit ede1435518
8 changed files with 10 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ public class DreamSettings extends SettingsPreferenceFragment {
final Activity activity = getActivity();
mBackend = new DreamBackend(activity);
mSwitch = new Switch(activity);
mSwitch = new Switch(activity.getActionBar().getThemedContext());
mSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {