Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45711dcc authored by Varun Somani's avatar Varun Somani
Browse files

ARC: Show location services setting in ARC-T

Add a new flag that controls location services setting. The current flag
controls location services as well as wifi and bluetooth scanning.
Seperating these flag will help show GLA setting to the user.

UI: go/screen-recording-location-setting-arc-t

Bug: 295397004
Test: atest SettingsRoboTests and manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:37a14be139542f0d6dbc4b75863368279e8053ba)
Merged-In: I3fc377fb118fea031b0ca7dca84f645998486304
Change-Id: I3fc377fb118fea031b0ca7dca84f645998486304
parent ad8dbc37
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }
+1 −0
Original line number Diff line number Diff line
@@ -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>