Disable the mic/cam toggles when admin disallows

Test: Use test DPC app
Bug: 184927615
Change-Id: Ib3825967b2e7ddb6d4768abbc2e17fd39b936371
This commit is contained in:
Evan Severson
2021-06-23 21:44:21 -07:00
parent 150ed0b071
commit 2a5dd0e2ad
4 changed files with 29 additions and 2 deletions

View File

@@ -64,14 +64,14 @@
</Preference>
<!-- Camera toggle -->
<SwitchPreference
<com.android.settingslib.RestrictedSwitchPreference
android:key="privacy_camera_toggle"
android:title="@string/camera_toggle_title"
android:summary="@string/sensor_toggle_description"
settings:controller="com.android.settings.privacy.CameraToggleController"/>
<!-- Microphone toggle -->
<SwitchPreference
<com.android.settingslib.RestrictedSwitchPreference
android:key="privacy_mic_toggle"
android:title="@string/mic_toggle_title"
android:summary="@string/sensor_toggle_description"