From cb193d55e17fc7cfdb195eea9b6c4b4c7af66b4b Mon Sep 17 00:00:00 2001 From: Lifu Tang Date: Mon, 23 Mar 2015 13:16:56 -0700 Subject: [PATCH] Added a screen to configure wireless scanning - Created "Scanning" preference screen - Added overflow menu on "Location" settings to access "Scanning" settings - Moved "Wi-Fi scanning always available" from Wi-Fi settings to "Scanning" settings - Added "Bluetooth scanning always available" preference (UI only) Change-Id: I85d8cd60ab309db5db9caee43f4b5a117192d904 --- res/values/strings.xml | 21 ++++-- res/xml/location_scanning.xml | 34 +++++++++ res/xml/wifi_advanced_settings.xml | 6 -- .../settings/location/LocationSettings.java | 27 ++++++++ .../settings/location/ScanningSettings.java | 69 +++++++++++++++++++ .../settings/wifi/AdvancedWifiSettings.java | 10 --- 6 files changed, 145 insertions(+), 22 deletions(-) create mode 100644 res/xml/location_scanning.xml create mode 100644 src/com/android/settings/location/ScanningSettings.java diff --git a/res/values/strings.xml b/res/values/strings.xml index ec93db3bbc5..fc3ed0a2d49 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1415,12 +1415,6 @@ Don\'t use a Wi\u2011Fi network unless it has a good Internet connection Only use networks that have a good Internet connection - - Scanning always available - - Always allow scanning - - Let Google\'s location service and other apps scan for networks, even when Wi\u2011Fi is off Use open Wi\u2011Fi automatically @@ -2628,6 +2622,21 @@ Use Wi\u2011Fi and cellular networks to determine location Use GPS to determine location + + Scanning + + Scanning + + Wi\u2011Fi scanning always available + + The clear history button in + your browser has saved more lives than Superman + + Bluetooth scanning always available + + If you want to catch a + squirrel just climb a tree and act like a nut Wi\u2011Fi & cellular network location diff --git a/res/xml/location_scanning.xml b/res/xml/location_scanning.xml new file mode 100644 index 00000000000..74e6d3b5ee9 --- /dev/null +++ b/res/xml/location_scanning.xml @@ -0,0 +1,34 @@ + + + + + + + + + + diff --git a/res/xml/wifi_advanced_settings.xml b/res/xml/wifi_advanced_settings.xml index a7f47b1db7c..1fc1cda9002 100644 --- a/res/xml/wifi_advanced_settings.xml +++ b/res/xml/wifi_advanced_settings.xml @@ -24,12 +24,6 @@ android:summary="@string/wifi_notify_open_networks_summary" android:persistent="false" /> - -