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(),