Remove location toggle from privacy controls screen

Bug: 238857896
Test: manual
Change-Id: Ifc4ccc13271c42a0dd1941e8f26842afbe0411d6
This commit is contained in:
Nate Myren
2022-07-13 11:31:16 -07:00
parent e287bbe82b
commit d18f11a84f
2 changed files with 0 additions and 9 deletions

View File

@@ -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"

View File

@@ -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;
}