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:
@@ -784,4 +784,7 @@
|
|||||||
|
|
||||||
<!-- Package responsible for updating Mainline Modules -->
|
<!-- Package responsible for updating Mainline Modules -->
|
||||||
<string name="config_mainline_module_update_package" translatable="false">com.android.vending</string>
|
<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>
|
</resources>
|
||||||
|
@@ -32,7 +32,7 @@ public class LocationServicesPreferenceController extends BasePreferenceControll
|
|||||||
|
|
||||||
@AvailabilityStatus
|
@AvailabilityStatus
|
||||||
public int getAvailabilityStatus() {
|
public int getAvailabilityStatus() {
|
||||||
return mContext.getResources().getBoolean(R.bool.config_show_location_scanning)
|
return mContext.getResources().getBoolean(R.bool.config_show_location_services)
|
||||||
? AVAILABLE
|
? AVAILABLE
|
||||||
: UNSUPPORTED_ON_DEVICE;
|
: UNSUPPORTED_ON_DEVICE;
|
||||||
}
|
}
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
<bool name="config_show_enabled_vr_listeners">false</bool>
|
<bool name="config_show_enabled_vr_listeners">false</bool>
|
||||||
<bool name="config_location_mode_available">false</bool>
|
<bool name="config_location_mode_available">false</bool>
|
||||||
<bool name="config_show_location_scanning">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_manage_device_admin">false</bool>
|
||||||
<bool name="config_show_unlock_set_or_change">false</bool>
|
<bool name="config_show_unlock_set_or_change">false</bool>
|
||||||
<bool name="config_show_screen_pinning_settings">false</bool>
|
<bool name="config_show_screen_pinning_settings">false</bool>
|
||||||
|
@@ -20,4 +20,5 @@
|
|||||||
<bool name="config_show_camera_laser_sensor">true</bool>
|
<bool name="config_show_camera_laser_sensor">true</bool>
|
||||||
<bool name="config_show_connectivity_monitor">true</bool>
|
<bool name="config_show_connectivity_monitor">true</bool>
|
||||||
<bool name="config_show_smooth_display">true</bool>
|
<bool name="config_show_smooth_display">true</bool>
|
||||||
|
<bool name="config_show_location_services">true</bool>
|
||||||
</resources>
|
</resources>
|
||||||
|
Reference in New Issue
Block a user