From 255743990c0163332d1931e0b2081b84b51904ab Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Fri, 18 Apr 2014 16:18:26 -0700 Subject: [PATCH] Make the WiFi switch appear again - use the ActionBar Theme context when creating the Switch for getting the correct Theming Change-Id: I1c44e1b1c28bf02af4c2ac9912295106d93a60e8 --- src/com/android/settings/wifi/WifiSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index 15a184c97a1..9a2180edd88 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -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) {