Make the WiFi switch appear again
- use the ActionBar Theme context when creating the Switch for getting the correct Theming Change-Id: I1c44e1b1c28bf02af4c2ac9912295106d93a60e8
This commit is contained in:
@@ -415,7 +415,7 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
if (!mSetupWizardMode) {
|
||||
final Activity activity = getActivity();
|
||||
|
||||
mSwitch = new Switch(activity);
|
||||
mSwitch = new Switch(activity.getActionBar().getThemedContext());
|
||||
boolean addSwitch = true;
|
||||
|
||||
if (activity instanceof WifiPickerActivity) {
|
||||
|
Reference in New Issue
Block a user