We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ce52c commit c74998aCopy full SHA for c74998a
app/src/main/java/com/yogeshpaliyal/deepr/sync/SyncRepositoryImpl.kt
@@ -35,7 +35,7 @@ class SyncRepositoryImpl(
35
}
36
37
val res =
38
- context.contentResolver.openOutputStream(filePath.toUri())?.use {
+ context.contentResolver.openOutputStream(filePath.toUri(), "wt")?.use {
39
val count = deeprQueries.countDeepr().executeAsOne()
40
if (count == 0L) {
41
return@withContext RequestResult.Error(context.getString(R.string.no_data_to_export))
0 commit comments