|
@@ -65,8 +65,8 @@ data class LibrarySort(
|
|
|
}
|
|
|
|
|
|
companion object {
|
|
|
- val types = setOf(Type.Alphabetical, Type.LastRead, Type.LastUpdate, Type.UnreadCount, Type.TotalChapters, Type.LatestChapter, Type.ChapterFetchDate, Type.DateAdded)
|
|
|
- val directions = setOf(Direction.Ascending, Direction.Descending)
|
|
|
+ val types by lazy { setOf(Type.Alphabetical, Type.LastRead, Type.LastUpdate, Type.UnreadCount, Type.TotalChapters, Type.LatestChapter, Type.ChapterFetchDate, Type.DateAdded) }
|
|
|
+ val directions by lazy { setOf(Direction.Ascending, Direction.Descending) }
|
|
|
val default = LibrarySort(Type.Alphabetical, Direction.Ascending)
|
|
|
|
|
|
fun valueOf(flag: Long): LibrarySort {
|