mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
This also refactor how chapters progress are saved. Chapters' progress now save when user "flipped" the page. Closes GH-409 Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
14 lines
533 B
Kotlin
14 lines
533 B
Kotlin
package yokai.domain.library
|
|
|
|
import eu.kanade.tachiyomi.core.preference.PreferenceStore
|
|
|
|
class LibraryPreferences(private val preferenceStore: PreferenceStore) {
|
|
fun randomSortSeed() = preferenceStore.getInt("library_random_sort_seed", 0)
|
|
|
|
fun markDuplicateReadChapterAsRead() = preferenceStore.getStringSet("mark_duplicate_read_chapter_read", emptySet())
|
|
|
|
companion object {
|
|
const val MARK_DUPLICATE_READ_CHAPTER_READ_NEW = "new"
|
|
const val MARK_DUPLICATE_READ_CHAPTER_READ_EXISTING = "existing"
|
|
}
|
|
}
|