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

Commit 3a614dd9 authored by fayey's avatar fayey Committed by Faye Yan
Browse files

Add the second toggle for the egress data permission on voice activation

apps toggle page.

Bug: 309677007
Test: presubmit
Change-Id: Ifb6a1277adf67bc9508477db8aa2c32747115532
parent 5b4e13aa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ internal fun <T : AppRecord> TogglePermissionAppListModel<T>.TogglePermissionApp
                uid = checkNotNull(applicationInfo).uid,
                packageName = packageName) })
        RestrictedSwitchPreference(switchModel, restrictions, restrictionsProviderFactory)
        InfoPageAdditionalContent(record, isAllowed)
    }
}

+3 −0
Original line number Diff line number Diff line
@@ -77,6 +77,9 @@ interface TogglePermissionAppListModel<T : AppRecord> {
     * Sets whether the permission is allowed for the given app.
     */
    fun setAllowed(record: T, newAllowed: Boolean)

    @Composable
    fun InfoPageAdditionalContent(record: T, isAllowed: () -> Boolean?){}
}

interface TogglePermissionAppListProvider {