Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 249a4426 authored by Sunny Shao's avatar Sunny Shao
Browse files

[Catalyst] Implement get{Read,Write}Permissions for Adaptive brightness

NO_IFTTT=Catalyst migration

Test: Devtool
Bug: 385266613
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: I32e8b5e30269397b6198bcd87d366ada73d84893
parent 3b54bb45
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -65,6 +65,10 @@ class AutoBrightnessScreen :
    override fun storage(context: Context): KeyValueStore =
        AutoBrightnessDataStore(SettingsSystemStore.get(context))

    override fun getReadPermissions(context: Context) = SettingsSystemStore.getReadPermissions()

    override fun getWritePermissions(context: Context) = SettingsSystemStore.getWritePermissions()

    override fun getReadPermit(context: Context, callingPid: Int, callingUid: Int) =
        ReadWritePermit.ALLOW