Whoops spotlessed again

This commit is contained in:
Jack Hamilton 2024-10-12 16:34:40 -05:00
parent c3adf103d7
commit dae7a00b41
2 changed files with 3 additions and 4 deletions

View File

@ -308,9 +308,9 @@ class LibraryScreenModel(
} }
return mapValues { (key, value) -> return mapValues { (key, value) ->
if (key.sort.type == LibrarySort.Type.Random) { if (key.sort.type == LibrarySort.Type.Random) {
return@mapValues value.shuffled(Random(libraryPreferences.randomSortSeed().get())) return@mapValues value.shuffled(Random(libraryPreferences.randomSortSeed().get()))
} }
val comparator = key.sort.comparator() val comparator = key.sort.comparator()
.let { if (key.sort.isAscending) it else it.reversed() } .let { if (key.sort.isAscending) it else it.reversed() }

View File

@ -17,7 +17,6 @@ import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowDownward import androidx.compose.material.icons.filled.ArrowDownward
import androidx.compose.material.icons.filled.ArrowUpward import androidx.compose.material.icons.filled.ArrowUpward
import androidx.compose.material.icons.filled.Refresh
import androidx.compose.material.icons.rounded.CheckBox import androidx.compose.material.icons.rounded.CheckBox
import androidx.compose.material.icons.rounded.CheckBoxOutlineBlank import androidx.compose.material.icons.rounded.CheckBoxOutlineBlank
import androidx.compose.material.icons.rounded.DisabledByDefault import androidx.compose.material.icons.rounded.DisabledByDefault