From 5515aa21ba67c8400ab4e2ac95df3eebf1a4253f Mon Sep 17 00:00:00 2001 From: Paul Woitaschek Date: Sat, 13 May 2023 11:48:13 +0200 Subject: [PATCH] Fix lint --- .../src/main/kotlin/voice/documentfile/ParseContents.kt | 5 ++++- .../main/kotlin/voice/documentfile/RealCachedDocumentFile.kt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/documentfile/src/main/kotlin/voice/documentfile/ParseContents.kt b/documentfile/src/main/kotlin/voice/documentfile/ParseContents.kt index 8743c5aa14..6cf7f59226 100644 --- a/documentfile/src/main/kotlin/voice/documentfile/ParseContents.kt +++ b/documentfile/src/main/kotlin/voice/documentfile/ParseContents.kt @@ -12,7 +12,10 @@ internal fun parseContents(uri: Uri, context: Context): List ) return context.contentResolver.query( childrenUri, - FileContents.columns, null, null, null, + FileContents.columns, + null, + null, + null, )?.use { cursor -> val files = mutableListOf() while (cursor.moveToNext()) { diff --git a/documentfile/src/main/kotlin/voice/documentfile/RealCachedDocumentFile.kt b/documentfile/src/main/kotlin/voice/documentfile/RealCachedDocumentFile.kt index c6ada02b93..27514cef86 100644 --- a/documentfile/src/main/kotlin/voice/documentfile/RealCachedDocumentFile.kt +++ b/documentfile/src/main/kotlin/voice/documentfile/RealCachedDocumentFile.kt @@ -20,7 +20,10 @@ internal data class RealCachedDocumentFile( private val content: FileContents? by lazy { preFilledContent ?: context.contentResolver.query( uri, - FileContents.columns, null, null, null, + FileContents.columns, + null, + null, + null, )?.use { cursor -> if (cursor.moveToFirst()) { FileContents.readFrom(cursor)