Procházet zdrojové kódy

LocalSource: Create cover file if it doesn't exist (#7954)

AntsyLich před 2 roky
rodič
revize
0c7b1bda7f

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

@@ -349,6 +349,7 @@ class LocalSource(
             var coverFile = getCoverFile(manga.url, baseDirsFiles)
             if (coverFile == null) {
                 coverFile = File(mangaDir.absolutePath, DEFAULT_COVER_NAME)
+                coverFile.createNewFile()
             }
 
             // It might not exist at this point