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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user