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

Commit 6bf8e9bd authored by Faye Yan's avatar Faye Yan Committed by Android (Google) Code Review
Browse files

Merge "Add the second toggle for the egress data permission on voice...

Merge "Add the second toggle for the egress data permission on voice activation apps toggle page." into main
parents 1890941b 3a614dd9
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 {