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

Commit d18f11a8 authored by Nate Myren's avatar Nate Myren
Browse files

Remove location toggle from privacy controls screen

Bug: 238857896
Test: manual
Change-Id: Ifc4ccc13271c42a0dd1941e8f26842afbe0411d6
parent e287bbe8
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -34,12 +34,6 @@
        android:summary="@string/mic_toggle_description"
        settings:controller="com.android.settings.privacy.MicToggleController"/>

    <!-- Location toggle -->
    <com.android.settingslib.RestrictedSwitchPreference
        android:key="privacy_location_toggle"
        android:title="@string/location_toggle_title"
        android:summary="@string/perm_toggle_description"/>

    <!-- Clipboard access notifications -->
    <SwitchPreference
        android:key="show_clip_access_notification"
+0 −3
Original line number Diff line number Diff line
@@ -33,15 +33,12 @@ public class PrivacyControlsFragment extends DashboardFragment {
    private static final String TAG = "PrivacyDashboardFrag";
    private static final String CAMERA_KEY = "privacy_camera_toggle";
    private static final String MIC_KEY = "privacy_mic_toggle";
    private static final String LOCATION_KEY = "privacy_location_toggle";

    @Override
    protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
        final List<AbstractPreferenceController> controllers = new ArrayList<>();
        controllers.add(new CameraToggleController(context, CAMERA_KEY));
        controllers.add(new MicToggleController(context, MIC_KEY));
        controllers.add(new LocationToggleController(context, LOCATION_KEY,
                getSettingsLifecycle()));
        controllers.add(new ShowClipAccessNotificationPreferenceController(context));
        return controllers;
    }