Initial conversion of browse tabs to full Compose
TODO: - Global search should launch a controller with the search textfield focused. This is pending a Compose rewrite of that screen. - Better migrate sort UI - Extensions search
This commit is contained in:
@@ -6,10 +6,9 @@ class SetMigrateSorting(
|
||||
private val preferences: PreferencesHelper,
|
||||
) {
|
||||
|
||||
fun await(mode: Mode, isAscending: Boolean) {
|
||||
val direction = if (isAscending) Direction.ASCENDING else Direction.DESCENDING
|
||||
preferences.migrationSortingDirection().set(direction)
|
||||
fun await(mode: Mode, direction: Direction) {
|
||||
preferences.migrationSortingMode().set(mode)
|
||||
preferences.migrationSortingDirection().set(direction)
|
||||
}
|
||||
|
||||
enum class Mode {
|
||||
|
||||
Reference in New Issue
Block a user