Fix build
This commit is contained in:
parent
e427dc2d1c
commit
16c524d81e
@ -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)))
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user