diff --git a/app/src/main/java/be/chvp/nanoledger/data/LedgerRepository.kt b/app/src/main/java/be/chvp/nanoledger/data/LedgerRepository.kt index c1168ae..c9d688f 100644 --- a/app/src/main/java/be/chvp/nanoledger/data/LedgerRepository.kt +++ b/app/src/main/java/be/chvp/nanoledger/data/LedgerRepository.kt @@ -142,7 +142,7 @@ class LedgerRepository if (!matches(fileUri)) { onMismatch() } else { - context.contentResolver.openOutputStream(fileUri, "w") + context.contentResolver.openOutputStream(fileUri, "wt") ?.let { OutputStreamWriter(it) } ?.use { fileContents.value!!.forEach { line ->