From 1c4e96864f054f0d3d754d21eb4803fe0df6d89f Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 1 Dec 2009 17:08:20 -0800 Subject: [PATCH] Allow bluetooth in airplane mode when in "toggleable" list. Settings.System.AIRPLANE_MODE_TOGGLEABLE_RADIOS is a list of radios that can be toggled while in airplane mode. This CL changes BluetoothEnabler to respect this. It parallels the logic in WifiEnabler, which enables OEMs to allow Wifi changes when in airplane mode. Most existing devices don't include "bluetooth" in the toggleable list, which means bluetooth will continue to be disabled when in airplane mode for those devices. Fixes http://b/2297314 --- res/xml/wireless_settings.xml | 6 +-- .../android/settings/WirelessSettings.java | 9 +++- .../settings/bluetooth/BluetoothEnabler.java | 42 ++++++++++--------- .../android/settings/wifi/WifiEnabler.java | 15 +++++-- 4 files changed, 44 insertions(+), 28 deletions(-) diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml index 1bb55ef4b0f..24930212b8a 100644 --- a/res/xml/wireless_settings.xml +++ b/res/xml/wireless_settings.xml @@ -44,14 +44,12 @@ android:key="toggle_bluetooth" android:title="@string/bluetooth_quick_toggle_title" android:summary="@string/bluetooth_quick_toggle_summary" - android:persistent="false" - android:dependency="toggle_airplane" /> + android:persistent="false" /> + android:summary="@string/bluetooth_settings_summary">