diff --git a/res/values/strings.xml b/res/values/strings.xml index 2e98ec57de3..05b07e57f53 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1728,7 +1728,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. @@ -1981,13 +1981,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);