mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-16 17:45:14 +01:00
Commas :<
This commit is contained in:
parent
87f50551c8
commit
0d4735630a
app/src/main/java/eu/kanade
@ -350,7 +350,7 @@ object SettingsDataScreen : SearchableSettings {
|
|||||||
it,
|
it,
|
||||||
favoritesState,
|
favoritesState,
|
||||||
LibraryExporter.ExportOptions(titleSelected, authorSelected, artistSelected),
|
LibraryExporter.ExportOptions(titleSelected, authorSelected, artistSelected),
|
||||||
coroutineScope
|
coroutineScope,
|
||||||
) {
|
) {
|
||||||
context.toast(MR.strings.library_exported)
|
context.toast(MR.strings.library_exported)
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ class LibraryExporter {
|
|||||||
data class ExportOptions(
|
data class ExportOptions(
|
||||||
val includeTitle: Boolean,
|
val includeTitle: Boolean,
|
||||||
val includeAuthor: Boolean,
|
val includeAuthor: Boolean,
|
||||||
val includeArtist: Boolean
|
val includeArtist: Boolean,
|
||||||
)
|
)
|
||||||
|
|
||||||
fun exportToCsv(
|
fun exportToCsv(
|
||||||
@ -20,7 +20,7 @@ class LibraryExporter {
|
|||||||
favorites: List<Manga>,
|
favorites: List<Manga>,
|
||||||
options: ExportOptions,
|
options: ExportOptions,
|
||||||
coroutineScope: CoroutineScope,
|
coroutineScope: CoroutineScope,
|
||||||
onExportComplete: () -> Unit
|
onExportComplete: () -> Unit,
|
||||||
) {
|
) {
|
||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
context.contentResolver.openOutputStream(uri)?.use { outputStream ->
|
context.contentResolver.openOutputStream(uri)?.use { outputStream ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user