Merge changes from topic "cherrypicker-L33700000962584268:N96700001396822390" into main

* changes:
  ARC: Follow-up fix AndroidLint error
  ARC: Show location services setting in ARC-T
This commit is contained in:
Varun Somani
2023-12-26 20:26:40 +00:00
committed by Android (Google) Code Review
4 changed files with 6 additions and 1 deletions

View File

@@ -784,4 +784,7 @@
<!-- Package responsible for updating Mainline Modules -->
<string name="config_mainline_module_update_package" translatable="false">com.android.vending</string>
<!-- Whether location services setting is available or not. -->
<bool name="config_show_location_services">true</bool>
</resources>

View File

@@ -32,7 +32,7 @@ public class LocationServicesPreferenceController extends BasePreferenceControll
@AvailabilityStatus
public int getAvailabilityStatus() {
return mContext.getResources().getBoolean(R.bool.config_show_location_scanning)
return mContext.getResources().getBoolean(R.bool.config_show_location_services)
? AVAILABLE
: UNSUPPORTED_ON_DEVICE;
}

View File

@@ -38,6 +38,7 @@
<bool name="config_show_enabled_vr_listeners">false</bool>
<bool name="config_location_mode_available">false</bool>
<bool name="config_show_location_scanning">false</bool>
<bool name="config_show_location_services">false</bool>
<bool name="config_show_manage_device_admin">false</bool>
<bool name="config_show_unlock_set_or_change">false</bool>
<bool name="config_show_screen_pinning_settings">false</bool>

View File

@@ -20,4 +20,5 @@
<bool name="config_show_camera_laser_sensor">true</bool>
<bool name="config_show_connectivity_monitor">true</bool>
<bool name="config_show_smooth_display">true</bool>
<bool name="config_show_location_services">true</bool>
</resources>