From 2e0eb5de54f75d23d1669b222c20acd3af59c0ba Mon Sep 17 00:00:00 2001 From: Koitharu Date: Tue, 16 May 2023 13:07:11 +0300 Subject: [PATCH] Fix handling special characters in local manga filenames --- .../org/koitharu/kotatsu/local/data/input/LocalMangaInput.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/koitharu/kotatsu/local/data/input/LocalMangaInput.kt b/app/src/main/java/org/koitharu/kotatsu/local/data/input/LocalMangaInput.kt index 64f076741..0da957b8b 100644 --- a/app/src/main/java/org/koitharu/kotatsu/local/data/input/LocalMangaInput.kt +++ b/app/src/main/java/org/koitharu/kotatsu/local/data/input/LocalMangaInput.kt @@ -31,7 +31,8 @@ sealed class LocalMangaInput( } @JvmStatic - protected fun zipUri(file: File, entryName: String) = "cbz://${file.path}#$entryName" + protected fun zipUri(file: File, entryName: String): String = + Uri.fromParts("cbz", file.path, entryName).toString() @JvmStatic protected fun Manga.copy2(