Snap for 8832598 from d18f11a84f to tm-qpr1-release

Change-Id: If241258e520ef608f5a50167848715b4ff751dba
This commit is contained in:
Android Build Coastguard Worker
2022-07-15 01:25:31 +00:00
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;
}