Fix filter FAB not working in migrate screen
I feel like this needs to be aligned with the browse screen/deduped somehow, but that can happen separately. Fixes #9444 (cherry picked from commit 1b25290d399037fe2d9744a899f86ca128699f8e) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SourceSearchScreen.kt
This commit is contained in:
parent
1234081cef
commit
bc1dc90963
@ -19,6 +19,7 @@ import eu.kanade.presentation.util.Screen
|
||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||
import eu.kanade.tachiyomi.ui.browse.migration.advanced.process.MigrationListScreen
|
||||
import eu.kanade.tachiyomi.ui.browse.source.browse.BrowseSourceScreenModel
|
||||
import eu.kanade.tachiyomi.ui.browse.source.browse.SourceFilterDialog
|
||||
import eu.kanade.tachiyomi.ui.manga.MangaScreen
|
||||
import eu.kanade.tachiyomi.ui.webview.WebViewScreen
|
||||
import tachiyomi.core.Constants
|
||||
@ -98,5 +99,28 @@ data class SourceSearchScreen(
|
||||
onMangaLongClick = { navigator.push(MangaScreen(it.id, true)) },
|
||||
)
|
||||
}
|
||||
|
||||
val onDismissRequest = { screenModel.setDialog(null) }
|
||||
when (val dialog = state.dialog) {
|
||||
is BrowseSourceScreenModel.Dialog.Filter -> {
|
||||
SourceFilterDialog(
|
||||
onDismissRequest = onDismissRequest,
|
||||
filters = state.filters,
|
||||
onReset = screenModel::resetFilters,
|
||||
onFilter = { screenModel.search(filters = state.filters) },
|
||||
onUpdate = screenModel::setFilters,
|
||||
// SY -->
|
||||
startExpanded = screenModel.startExpanded,
|
||||
onSave = {},
|
||||
savedSearches = emptyList(),
|
||||
onSavedSearch = {},
|
||||
onSavedSearchPress = {},
|
||||
openMangaDexRandom = null,
|
||||
openMangaDexFollows = null,
|
||||
// SY <--
|
||||
)
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user