Fix missing downloaded only/incognito banners in Browse

This commit is contained in:
arkon
2022-09-03 10:32:13 -04:00
parent 3fa68ed217
commit bbf5c86b46
4 changed files with 20 additions and 4 deletions

View File

@@ -21,6 +21,8 @@ fun TabbedScreen(
@StringRes titleRes: Int,
tabs: List<TabContent>,
startIndex: Int? = null,
incognitoMode: Boolean,
downloadedOnlyMode: Boolean,
) {
val scope = rememberCoroutineScope()
val state = rememberPagerState()
@@ -57,6 +59,13 @@ fun TabbedScreen(
}
}
if (downloadedOnlyMode) {
DownloadedOnlyModeBanner()
}
if (incognitoMode) {
IncognitoModeBanner()
}
HorizontalPager(
count = tabs.size,
modifier = Modifier.fillMaxSize(),

View File

@@ -1,6 +1,5 @@
package eu.kanade.presentation.library.components
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.ScrollableTabRow
import androidx.compose.material3.Tab
@@ -31,8 +30,6 @@ fun LibraryTabs(
) {
val scope = rememberCoroutineScope()
val pillAlpha = if (isSystemInDarkTheme()) 0.12f else 0.08f
Column {
ScrollableTabRow(
selectedTabIndex = state.currentPage,