Add the dialog when clicking on the diabled switch.

Bug: 302189945
Change-Id: I0bf7774b80a59c70a2ea1725e0adba522854adde
This commit is contained in:
Wa Gao
2023-11-08 06:09:27 +00:00
parent b75a956c10
commit 6b9e20d32d
5 changed files with 252 additions and 91 deletions

View File

@@ -36,10 +36,11 @@
settings:lottie_rawRes="@drawable/content_protection_preference_illustration"
settings:searchable="false" />
<SwitchPreference
<com.android.settingslib.RestrictedSwitchPreference
android:key="content_protection_preference_user_consent_work_profile_switch"
android:title="@string/content_protection_preference_user_consent_work_profile_switch_title"
settings:isPreferenceVisible="false" />
settings:restrictedSwitchSummary="@string/summary_placeholder"
settings:controller="com.android.settings.security.ContentProtectionWorkSwitchController"/>
<com.android.settingslib.widget.FooterPreference
android:key="content_protection_preference_subpage_footer"