[Catalyst] Support multiple restriction keys

NO_IFTTT=Catalyst only

Bug: 377600992
Flag: com.android.settings.flags.catalyst
Test: testdpc
Change-Id: If7212b5402f7e271b7fdbd2a43bed0e11ee6f15f
This commit is contained in:
Jacky Wang
2024-11-12 01:26:12 +08:00
parent a1abfdcaca
commit 865e9b29f5
11 changed files with 48 additions and 31 deletions

View File

@@ -71,8 +71,8 @@ class BrightnessLevelPreference :
override fun isEnabled(context: Context) = super<PreferenceRestrictionMixin>.isEnabled(context)
override val restrictionKey: String
get() = UserManager.DISALLOW_CONFIG_BRIGHTNESS
override val restrictionKeys
get() = arrayOf(UserManager.DISALLOW_CONFIG_BRIGHTNESS)
override val useAdminDisabledSummary: Boolean
get() = true