Add option to reset viewer flags (#7062)

* Add option to reset viewer flags

* Review Changes

* Run `resetViewerFlags()` content with `launchIO`
This commit is contained in:
FourTOne5
2022-05-12 19:00:57 +06:00
committed by GitHub
parent f1afeac0bc
commit 08fb2fe467
7 changed files with 74 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
package eu.kanade.domain.manga.interactor
import eu.kanade.domain.manga.repository.MangaRepository
class ResetViewerFlags(
private val mangaRepository: MangaRepository
) {
suspend fun await(): Boolean {
return mangaRepository.resetViewerFlags()
}
}

View File

@@ -6,4 +6,6 @@ import kotlinx.coroutines.flow.Flow
interface MangaRepository {
fun getFavoritesBySourceId(sourceId: Long): Flow<List<Manga>>
suspend fun resetViewerFlags(): Boolean
}