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

Commit 1f5b0e9a authored by Sunny Shao's avatar Sunny Shao
Browse files

[Catalyst] Implement get{Read,Write}Permissions for Always show time and info

NO_IFTTT=Catalyst migration

Test: devtool
Bug: 385272042
Flag: com.android.settings.flags.catalyst_lockscreen_from_display_settings
Change-Id: I67513e205113df531accd9f84480d7921144df52
parent 3b54bb45
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -71,6 +71,10 @@ class AmbientDisplayAlwaysOnPreference :

    override fun storage(context: Context): KeyValueStore = Storage(context)

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

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

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