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:
Fabrice Di Meglio
2014-04-18 16:18:26 -07:00
parent 2169c88a14
commit 255743990c

View File

@@ -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) {