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

Commit 79004d10 authored by Sunny Shao's avatar Sunny Shao
Browse files

[Catalyst] Implement get{Read,Write}Permissions for Screen attention

NO_IFTTT=Catalyst migration

Test: devtool
Fix: 385274700
Flag: com.android.settings.flags.catalyst_screen_timeout
Change-Id: I77c4584fa92713854520594a1bdb9448937d14fb
parent 6d9de784
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -77,6 +77,10 @@ class AdaptiveSleepPreference :

    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