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:
@@ -368,7 +368,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
final Activity activity = getActivity();
|
||||
mEnabledSwitch = new Switch(activity);
|
||||
mEnabledSwitch = new Switch(activity.getActionBar().getThemedContext());
|
||||
|
||||
final int padding = activity.getResources().getDimensionPixelSize(
|
||||
R.dimen.action_bar_switch_padding);
|
||||
|
Reference in New Issue
Block a user