fix(ui): add missing @ParameterName annotations on actual rememberReadTextFromUri declarations (#5072)

This commit is contained in:
James Rich 2026-04-11 17:06:44 -05:00 committed by GitHub
parent 0441093ce8
commit 1fe3f4423d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ actual fun rememberOpenFileLauncher(onUriReceived: (CommonUri?) -> Unit): (mimeT
@Suppress("Wrapping")
@Composable
actual fun rememberReadTextFromUri(): suspend (CommonUri, Int) -> String? {
actual fun rememberReadTextFromUri(): suspend (uri: CommonUri, maxChars: Int) -> String? {
val context = LocalContext.current
return remember(context) {
{ uri, maxChars ->

View file

@ -89,7 +89,7 @@ actual fun rememberOpenFileLauncher(onUriReceived: (CommonUri?) -> Unit): (mimeT
/** JVM — Reads text from a file URI. */
@Composable
actual fun rememberReadTextFromUri(): suspend (CommonUri, Int) -> String? = { uri, maxChars ->
actual fun rememberReadTextFromUri(): suspend (uri: CommonUri, maxChars: Int) -> String? = { uri, maxChars ->
withContext(Dispatchers.IO) {
@Suppress("TooGenericExceptionCaught")
try {