Update dependencies

This commit is contained in:
Koitharu
2023-10-25 15:24:05 +03:00
parent 4bd7656681
commit 590120433c
24 changed files with 179 additions and 177 deletions

View File

@@ -16,7 +16,7 @@ class ProgressUpdateUseCase @Inject constructor(
) {
suspend operator fun invoke(manga: Manga): Float {
val history = database.historyDao.find(manga.id) ?: return PROGRESS_NONE
val history = database.getHistoryDao().find(manga.id) ?: return PROGRESS_NONE
val seed = if (manga.isLocal) {
localMangaRepository.getRemoteManga(manga) ?: manga
} else {
@@ -43,7 +43,7 @@ class ProgressUpdateUseCase @Inject constructor(
val ppc = 1f / chaptersCount
val result = ppc * chapterIndex + ppc * pagePercent
if (result != history.percent) {
database.historyDao.update(
database.getHistoryDao().update(
history.copy(
chapterId = chapter.id,
percent = result,