From db91d04e82a5fef55b94624daf3271c9df7655ea Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 25 Sep 2022 10:50:02 -0400 Subject: [PATCH] Temporarily replace library category tabs divider with our own Fixes #7789 --- .../kanade/presentation/library/components/LibraryTabs.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryTabs.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryTabs.kt index 7ca634a6f..9b54b2587 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryTabs.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryTabs.kt @@ -14,6 +14,7 @@ import com.google.accompanist.pager.PagerState import eu.kanade.domain.category.model.Category import eu.kanade.presentation.category.visualName import eu.kanade.presentation.components.AppStateBanners +import eu.kanade.presentation.components.Divider import eu.kanade.presentation.components.TabIndicator import eu.kanade.presentation.components.TabText import kotlinx.coroutines.launch @@ -34,6 +35,9 @@ fun LibraryTabs( selectedTabIndex = state.currentPage, edgePadding = 0.dp, indicator = { TabIndicator(it[state.currentPage]) }, + // TODO: use default when width is fixed upstream + // https://issuetracker.google.com/issues/242879624 + divider = {}, ) { categories.forEachIndexed { index, category -> val count by if (showMangaCount) { @@ -51,6 +55,8 @@ fun LibraryTabs( } } + Divider() + AppStateBanners(isDownloadOnly, isIncognitoMode) } }