Temporarily replace library category tabs divider with our own
Fixes #7789 (cherry picked from commit db91d04e82a5fef55b94624daf3271c9df7655ea) # Conflicts: # app/src/main/java/eu/kanade/presentation/library/components/LibraryTabs.kt
This commit is contained in:
parent
1ff5e62f0a
commit
bab663f856
@ -14,6 +14,7 @@ import com.google.accompanist.pager.PagerState
|
|||||||
import eu.kanade.domain.category.model.Category
|
import eu.kanade.domain.category.model.Category
|
||||||
import eu.kanade.presentation.category.visualName
|
import eu.kanade.presentation.category.visualName
|
||||||
import eu.kanade.presentation.components.AppStateBanners
|
import eu.kanade.presentation.components.AppStateBanners
|
||||||
|
import eu.kanade.presentation.components.Divider
|
||||||
import eu.kanade.presentation.components.TabIndicator
|
import eu.kanade.presentation.components.TabIndicator
|
||||||
import eu.kanade.presentation.components.TabText
|
import eu.kanade.presentation.components.TabText
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
@ -37,6 +38,9 @@ fun LibraryTabs(
|
|||||||
selectedTabIndex = state.currentPage.coerceAtMost(categories.lastIndex),
|
selectedTabIndex = state.currentPage.coerceAtMost(categories.lastIndex),
|
||||||
edgePadding = 0.dp,
|
edgePadding = 0.dp,
|
||||||
indicator = { TabIndicator(it[state.currentPage.coerceAtMost(categories.lastIndex)]) },
|
indicator = { TabIndicator(it[state.currentPage.coerceAtMost(categories.lastIndex)]) },
|
||||||
|
// TODO: use default when width is fixed upstream
|
||||||
|
// https://issuetracker.google.com/issues/242879624
|
||||||
|
divider = {},
|
||||||
) {
|
) {
|
||||||
categories.forEachIndexed { index, category ->
|
categories.forEachIndexed { index, category ->
|
||||||
val count by if (showMangaCount) {
|
val count by if (showMangaCount) {
|
||||||
@ -60,6 +64,8 @@ fun LibraryTabs(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Divider()
|
||||||
|
|
||||||
AppStateBanners(isDownloadOnly, isIncognitoMode)
|
AppStateBanners(isDownloadOnly, isIncognitoMode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user