Sorted error, spotless'd

This commit is contained in:
Jack Hamilton 2024-10-12 16:33:30 -05:00
parent 945ae821fb
commit c3adf103d7
2 changed files with 2 additions and 2 deletions

View File

@ -309,7 +309,7 @@ class LibraryScreenModel(
return mapValues { (key, value) ->
if (key.sort.type == LibrarySort.Type.Random) {
return@mapValues value.shuffled(Random(libraryPreferences.currentRandomSortSeed().get()))
return@mapValues value.shuffled(Random(libraryPreferences.randomSortSeed().get()))
}
val comparator = key.sort.comparator()

View File

@ -17,7 +17,7 @@ class SetSortModeForCategory(
val category = categoryId?.let { categoryRepository.get(it) }
val flags = (category?.flags ?: 0) + type + direction
if (type == LibrarySort.Type.Random) {
preferences.currentRandomSortSeed().set(Random.nextInt())
preferences.randomSortSeed().set(Random.nextInt())
}
if (category != null && preferences.categorizedDisplaySettings().get()) {
categoryRepository.updatePartial(