From 83bcc98af19597a213a8d174e8f1b47453d513ce Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Wed, 29 Jul 2009 23:25:10 -0700 Subject: [PATCH] Allow enabling Wifi when in airplane mode. If the new system settings value for AIRPLANE_MODE_TOGGLEABLE_RADIOS contains RADIO_WIFI, then the user will be allowed to enable Wifi while in airplane mode. Turning on airplane mode will still disable Wifi, but the user will be free to reenable it in the Settings app. We also allow access to the VPN settings under the same circumstances. Signed-off-by: Mike Lockwood --- res/xml/wireless_settings.xml | 11 +++--- .../android/settings/AirplaneModeEnabler.java | 2 +- .../android/settings/WirelessSettings.java | 37 +++++++++++++------ .../android/settings/wifi/WifiEnabler.java | 31 ++++++++-------- 4 files changed, 47 insertions(+), 34 deletions(-) diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml index 4731fb3f8fd..de62687862b 100644 --- a/res/xml/wireless_settings.xml +++ b/res/xml/wireless_settings.xml @@ -22,13 +22,12 @@ android:key="toggle_wifi" android:title="@string/wifi_quick_toggle_title" android:summary="@string/wifi_quick_toggle_summary" - android:persistent="false" - android:dependency="toggle_airplane" /> + android:persistent="false" /> + android:summary="@string/wifi_settings_summary" > + android:summary="@string/vpn_settings_summary" >