From 109d9bb21da6446808aed22e452a42dfa26f1fe3 Mon Sep 17 00:00:00 2001 From: Yu-Han Yang Date: Wed, 24 Mar 2021 19:53:14 -0700 Subject: [PATCH] Update links to Scanning Settings Bug: 180533061 Test: on device Change-Id: I103dbb999b408614c065763ec6c84952af18ddb3 --- res/values/strings.xml | 6 +++--- .../bluetooth/BluetoothSwitchPreferenceController.java | 6 +++--- src/com/android/settings/wifi/WifiSettings.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 2369864fac8..8ced85c17a8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1696,7 +1696,7 @@ When Bluetooth is turned on, your device can communicate with other nearby Bluetooth devices. - When Bluetooth is turned on, your device can communicate with other nearby Bluetooth devices.\n\nTo improve device experience, apps and services can still scan for nearby devices at any time, even when Bluetooth is off. This can be used, for example, to improve location-based features and services. you can change this in scanning settings. + When Bluetooth is turned on, your device can communicate with other nearby Bluetooth devices.\n\nTo improve device experience, apps and services can still scan for nearby devices at any time, even when Bluetooth is off. This can be used, for example, to improve location-based features and services. you can change this in Bluetooth scanning settings. @@ -1949,13 +1949,13 @@ - To improve location accuracy, apps and services can still scan for Wi\u2011Fi networks at any time, even when Wi\u2011Fi is off. This can be used, for example, to improve location-based features and services. You can change this in LINK_BEGINscanning settingsLINK_END. + To improve location accuracy, apps and services can still scan for Wi\u2011Fi networks at any time, even when Wi\u2011Fi is off. This can be used, for example, to improve location-based features and services. You can change this in LINK_BEGINWi\u2011Fi scanning settingsLINK_END. To improve location accuracy, turn on Wi-Fi scanning in - LINK_BEGINscanning + LINK_BEGINWi\u2011Fi scanning settingsLINK_END. Don\u2019t show again diff --git a/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceController.java b/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceController.java index 27f10da320d..3bf913209c2 100644 --- a/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceController.java +++ b/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceController.java @@ -23,7 +23,7 @@ import androidx.annotation.VisibleForTesting; import com.android.settings.R; import com.android.settings.core.SubSettingLauncher; -import com.android.settings.location.LocationServices; +import com.android.settings.location.BluetoothScanningFragment; import com.android.settings.overlay.FeatureFactory; import com.android.settings.utils.AnnotationSpan; import com.android.settings.widget.SwitchWidgetController; @@ -100,7 +100,7 @@ public class BluetoothSwitchPreferenceController public void onClick(View v) { // send users to scanning settings if they click on the link in the summary text new SubSettingLauncher(mContext) - .setDestination(LocationServices.class.getName()) + .setDestination(BluetoothScanningFragment.class.getName()) .setSourceMetricsCategory(SettingsEnums.BLUETOOTH_FRAGMENT) .launch(); } @@ -117,4 +117,4 @@ public class BluetoothSwitchPreferenceController mFooterPreference.setTitle(R.string.bluetooth_empty_list_bluetooth_off); } } -} \ No newline at end of file +} diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index 5545de6ced8..97a74d767a6 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -63,7 +63,7 @@ import com.android.settings.core.FeatureFlags; import com.android.settings.core.SubSettingLauncher; import com.android.settings.datausage.DataUsagePreference; import com.android.settings.datausage.DataUsageUtils; -import com.android.settings.location.LocationServices; +import com.android.settings.location.WifiScanningFragment; import com.android.settings.overlay.FeatureFactory; import com.android.settings.search.BaseSearchIndexProvider; import com.android.settings.widget.MainSwitchBarController; @@ -921,8 +921,8 @@ public class WifiSettings extends RestrictedSettingsFragment : getText(R.string.wifi_scan_notify_text_scanning_off); final LinkifyUtils.OnClickListener clickListener = () -> new SubSettingLauncher(getContext()) - .setDestination(LocationServices.class.getName()) - .setTitleRes(R.string.location_services_screen_title) + .setDestination(WifiScanningFragment.class.getName()) + .setTitleRes(R.string.location_scanning_wifi_always_scanning_title) .setSourceMetricsCategory(getMetricsCategory()) .launch(); mStatusMessagePreference.setText(title, description, clickListener);