[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

@@ -58,8 +58,8 @@ open class MediaVolumePreference :
override fun isEnabled(context: Context) = super<PreferenceRestrictionMixin>.isEnabled(context)
override val restrictionKey: String
get() = UserManager.DISALLOW_ADJUST_VOLUME
override val restrictionKeys
get() = arrayOf(UserManager.DISALLOW_ADJUST_VOLUME)
override fun storage(context: Context): KeyValueStore {
val helper = createAudioHelper(context)