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

View File

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