Fix build

This commit is contained in:
Jobobby04 2023-10-27 19:57:54 -04:00
parent e427dc2d1c
commit 16c524d81e
2 changed files with 2 additions and 4 deletions

View File

@ -952,9 +952,6 @@ class ReaderViewModel @JvmOverloads constructor(
val notifier = SaveImageNotifier(context)
notifier.onClear()
// Pictures directory.
val relativePath = if (readerPreferences.folderPerManga().get()) DiskUtil.buildValidFilename(manga.title) else ""
// Copy file in background.
viewModelScope.launchNonCancellable {
try {
@ -963,7 +960,7 @@ class ReaderViewModel @JvmOverloads constructor(
page2 = secondPage,
isLTR = isLTR,
bg = bg,
location = Location.Pictures.create(relativePath),
location = Location.Pictures(DiskUtil.buildValidFilename(manga.title)),
manga = manga,
)
eventChannel.send(Event.SavedImage(SaveImageResult.Success(uri)))

View File

@ -27,6 +27,7 @@ fun SManga.getComicInfo() = ComicInfo(
coverArtist = null,
tags = null,
categories = null,
padding = null,
)
fun SManga.copyFromComicInfo(comicInfo: ComicInfo) {