|
|
|
@ -266,13 +266,12 @@ private fun MangaScreenSmallImpl(
|
|
|
|
|
) {
|
|
|
|
|
val chapterListState = rememberLazyListState()
|
|
|
|
|
|
|
|
|
|
val chapters = remember(state) { state.processedChapters }
|
|
|
|
|
val listItem = remember(state) { state.chapterListItems }
|
|
|
|
|
|
|
|
|
|
val isAnySelected by remember {
|
|
|
|
|
derivedStateOf {
|
|
|
|
|
chapters.fastAny { it.selected }
|
|
|
|
|
}
|
|
|
|
|
val (chapters, listItem, isAnySelected) = remember(state) {
|
|
|
|
|
Triple(
|
|
|
|
|
first = state.processedChapters,
|
|
|
|
|
second = state.chapterListItems,
|
|
|
|
|
third = state.isAnySelected,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val internalOnBackPressed = {
|
|
|
|
@ -520,13 +519,12 @@ fun MangaScreenLargeImpl(
|
|
|
|
|
val layoutDirection = LocalLayoutDirection.current
|
|
|
|
|
val density = LocalDensity.current
|
|
|
|
|
|
|
|
|
|
val chapters = remember(state) { state.processedChapters }
|
|
|
|
|
val listItem = remember(state) { state.chapterListItems }
|
|
|
|
|
|
|
|
|
|
val isAnySelected by remember {
|
|
|
|
|
derivedStateOf {
|
|
|
|
|
chapters.fastAny { it.selected }
|
|
|
|
|
}
|
|
|
|
|
val (chapters, listItem, isAnySelected) = remember(state) {
|
|
|
|
|
Triple(
|
|
|
|
|
first = state.processedChapters,
|
|
|
|
|
second = state.chapterListItems,
|
|
|
|
|
third = state.isAnySelected,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val insetPadding = WindowInsets.systemBars.only(WindowInsetsSides.Horizontal).asPaddingValues()
|
|
|
|
|