Add option to backup non-library read entries (#1324)
Co-authored-by: jobobby04 <jobobby04@gmail.com> Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> (cherry picked from commit de36357da834bff4110dbb56dd7ce7aad04d3c7d) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/data/backup/create/BackupCreator.kt # app/src/main/java/eu/kanade/tachiyomi/data/backup/create/BackupOptions.kt # data/src/main/sqldelight/tachiyomi/data/mangas.sq
This commit is contained in:
committed by
Jobobby04
parent
216bc2c57d
commit
943555c0af
+2
-2
@@ -3,11 +3,11 @@ package tachiyomi.domain.manga.interactor
|
||||
import tachiyomi.domain.library.model.LibraryManga
|
||||
import tachiyomi.domain.manga.repository.MangaRepository
|
||||
|
||||
class GetReadMangaNotInLibrary(
|
||||
class GetReadMangaNotInLibraryView(
|
||||
private val mangaRepository: MangaRepository,
|
||||
) {
|
||||
|
||||
suspend fun await(): List<LibraryManga> {
|
||||
return mangaRepository.getReadMangaNotInLibrary()
|
||||
return mangaRepository.getReadMangaNotInLibraryView()
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,8 @@ interface MangaRepository {
|
||||
|
||||
suspend fun getFavorites(): List<Manga>
|
||||
|
||||
suspend fun getReadMangaNotInLibrary(): List<Manga>
|
||||
|
||||
suspend fun getLibraryManga(): List<LibraryManga>
|
||||
|
||||
fun getLibraryMangaAsFlow(): Flow<List<LibraryManga>>
|
||||
@@ -44,6 +46,6 @@ interface MangaRepository {
|
||||
|
||||
suspend fun deleteManga(mangaId: Long)
|
||||
|
||||
suspend fun getReadMangaNotInLibrary(): List<LibraryManga>
|
||||
suspend fun getReadMangaNotInLibraryView(): List<LibraryManga>
|
||||
// SY <--
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user