mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +00:00
Update App.kt
This commit is contained in:
parent
83eca2fade
commit
823f1e894d
1 changed files with 75 additions and 169 deletions
|
|
@ -128,9 +128,6 @@ import com.nuvio.app.features.player.PlayerLaunch
|
||||||
import com.nuvio.app.features.player.PlayerLaunchStore
|
import com.nuvio.app.features.player.PlayerLaunchStore
|
||||||
import com.nuvio.app.features.player.PlayerRoute
|
import com.nuvio.app.features.player.PlayerRoute
|
||||||
import com.nuvio.app.features.player.PlayerScreen
|
import com.nuvio.app.features.player.PlayerScreen
|
||||||
import com.nuvio.app.features.player.ExternalPlayerOpenResult
|
|
||||||
import com.nuvio.app.features.player.ExternalPlayerPlatform
|
|
||||||
import com.nuvio.app.features.player.ExternalPlayerPlaybackRequest
|
|
||||||
import com.nuvio.app.features.player.sanitizePlaybackHeaders
|
import com.nuvio.app.features.player.sanitizePlaybackHeaders
|
||||||
import com.nuvio.app.features.player.sanitizePlaybackResponseHeaders
|
import com.nuvio.app.features.player.sanitizePlaybackResponseHeaders
|
||||||
import com.nuvio.app.features.profiles.AvatarRepository
|
import com.nuvio.app.features.profiles.AvatarRepository
|
||||||
|
|
@ -291,14 +288,6 @@ private fun NativeNavigationTab.toAppScreenTab(): AppScreenTab = when (this) {
|
||||||
NativeNavigationTab.Settings -> AppScreenTab.Settings
|
NativeNavigationTab.Settings -> AppScreenTab.Settings
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun PlayerLaunch.toExternalPlayerPlaybackRequest(): ExternalPlayerPlaybackRequest =
|
|
||||||
ExternalPlayerPlaybackRequest(
|
|
||||||
sourceUrl = sourceUrl,
|
|
||||||
title = title,
|
|
||||||
streamTitle = streamTitle,
|
|
||||||
sourceHeaders = sourceHeaders,
|
|
||||||
)
|
|
||||||
|
|
||||||
private enum class AppGateScreen {
|
private enum class AppGateScreen {
|
||||||
Loading,
|
Loading,
|
||||||
Auth,
|
Auth,
|
||||||
|
|
@ -531,7 +520,6 @@ private fun MainAppContent(
|
||||||
val hapticFeedback = LocalHapticFeedback.current
|
val hapticFeedback = LocalHapticFeedback.current
|
||||||
val coroutineScope = rememberCoroutineScope()
|
val coroutineScope = rememberCoroutineScope()
|
||||||
var selectedTab by rememberSaveable { mutableStateOf(AppScreenTab.Home) }
|
var selectedTab by rememberSaveable { mutableStateOf(AppScreenTab.Home) }
|
||||||
var searchFocusRequestCount by remember { mutableStateOf(0) }
|
|
||||||
val currentBackStackEntry by navController.currentBackStackEntryAsState()
|
val currentBackStackEntry by navController.currentBackStackEntryAsState()
|
||||||
val nativeRequestedTab by remember { NativeTabBridge.requestedTab }.collectAsStateWithLifecycle()
|
val nativeRequestedTab by remember { NativeTabBridge.requestedTab }.collectAsStateWithLifecycle()
|
||||||
val liquidGlassNativeTabBarEnabled by remember {
|
val liquidGlassNativeTabBarEnabled by remember {
|
||||||
|
|
@ -574,9 +562,6 @@ private fun MainAppContent(
|
||||||
NetworkStatusRepository.uiState
|
NetworkStatusRepository.uiState
|
||||||
}.collectAsStateWithLifecycle()
|
}.collectAsStateWithLifecycle()
|
||||||
val downloadedProviderLabel = stringResource(Res.string.provider_downloaded)
|
val downloadedProviderLabel = stringResource(Res.string.provider_downloaded)
|
||||||
val externalPlayerNotConfiguredText = stringResource(Res.string.external_player_not_configured)
|
|
||||||
val externalPlayerUnavailableText = stringResource(Res.string.external_player_unavailable)
|
|
||||||
val externalPlayerFailedText = stringResource(Res.string.external_player_failed)
|
|
||||||
val isTraktLibrarySource = libraryUiState.sourceMode == LibrarySourceMode.TRAKT
|
val isTraktLibrarySource = libraryUiState.sourceMode == LibrarySourceMode.TRAKT
|
||||||
var initialHomeReady by rememberSaveable { mutableStateOf(false) }
|
var initialHomeReady by rememberSaveable { mutableStateOf(false) }
|
||||||
var offlineLaunchRouteHandled by rememberSaveable { mutableStateOf(false) }
|
var offlineLaunchRouteHandled by rememberSaveable { mutableStateOf(false) }
|
||||||
|
|
@ -598,9 +583,6 @@ private fun MainAppContent(
|
||||||
|
|
||||||
LaunchedEffect(selectedTab) {
|
LaunchedEffect(selectedTab) {
|
||||||
NativeTabBridge.publishSelectedTab(selectedTab.toNativeNavigationTab())
|
NativeTabBridge.publishSelectedTab(selectedTab.toNativeNavigationTab())
|
||||||
if (selectedTab != AppScreenTab.Search) {
|
|
||||||
searchFocusRequestCount = 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DisposableEffect(
|
DisposableEffect(
|
||||||
|
|
@ -770,29 +752,6 @@ private fun MainAppContent(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun openExternalPlayback(launch: PlayerLaunch): Boolean {
|
|
||||||
return when (
|
|
||||||
ExternalPlayerPlatform.open(
|
|
||||||
request = launch.toExternalPlayerPlaybackRequest(),
|
|
||||||
playerId = playerSettingsUiState.externalPlayerId,
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
ExternalPlayerOpenResult.Opened -> true
|
|
||||||
ExternalPlayerOpenResult.NotConfigured -> {
|
|
||||||
NuvioToastController.show(externalPlayerNotConfiguredText)
|
|
||||||
false
|
|
||||||
}
|
|
||||||
ExternalPlayerOpenResult.NoPlayerAvailable -> {
|
|
||||||
NuvioToastController.show(externalPlayerUnavailableText)
|
|
||||||
false
|
|
||||||
}
|
|
||||||
ExternalPlayerOpenResult.Failed -> {
|
|
||||||
NuvioToastController.show(externalPlayerFailedText)
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun launchPlaybackWithDownloadPreference(
|
fun launchPlaybackWithDownloadPreference(
|
||||||
type: String,
|
type: String,
|
||||||
videoId: String,
|
videoId: String,
|
||||||
|
|
@ -824,7 +783,8 @@ private fun MainAppContent(
|
||||||
)
|
)
|
||||||
val localSourceUrl = downloadedItem?.let(DownloadsRepository::playableLocalFileUri)
|
val localSourceUrl = downloadedItem?.let(DownloadsRepository::playableLocalFileUri)
|
||||||
if (!localSourceUrl.isNullOrBlank()) {
|
if (!localSourceUrl.isNullOrBlank()) {
|
||||||
val playerLaunch = PlayerLaunch(
|
val launchId = PlayerLaunchStore.put(
|
||||||
|
PlayerLaunch(
|
||||||
title = title,
|
title = title,
|
||||||
sourceUrl = localSourceUrl,
|
sourceUrl = localSourceUrl,
|
||||||
sourceHeaders = emptyMap(),
|
sourceHeaders = emptyMap(),
|
||||||
|
|
@ -847,12 +807,8 @@ private fun MainAppContent(
|
||||||
parentMetaType = parentMetaType,
|
parentMetaType = parentMetaType,
|
||||||
initialPositionMs = targetResumePositionMs,
|
initialPositionMs = targetResumePositionMs,
|
||||||
initialProgressFraction = targetResumeProgressFraction,
|
initialProgressFraction = targetResumeProgressFraction,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
if (playerSettingsUiState.externalPlayerEnabled) {
|
|
||||||
openExternalPlayback(playerLaunch)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
val launchId = PlayerLaunchStore.put(playerLaunch)
|
|
||||||
navController.navigate(PlayerRoute(launchId = launchId))
|
navController.navigate(PlayerRoute(launchId = launchId))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -1053,13 +1009,7 @@ private fun MainAppContent(
|
||||||
)
|
)
|
||||||
NavItem(
|
NavItem(
|
||||||
selected = selectedTab == AppScreenTab.Search,
|
selected = selectedTab == AppScreenTab.Search,
|
||||||
onClick = {
|
onClick = { selectedTab = AppScreenTab.Search },
|
||||||
if (selectedTab == AppScreenTab.Search) {
|
|
||||||
searchFocusRequestCount++
|
|
||||||
} else {
|
|
||||||
selectedTab = AppScreenTab.Search
|
|
||||||
}
|
|
||||||
},
|
|
||||||
icon = Res.drawable.sidebar_search,
|
icon = Res.drawable.sidebar_search,
|
||||||
contentDescription = stringResource(Res.string.compose_nav_search),
|
contentDescription = stringResource(Res.string.compose_nav_search),
|
||||||
)
|
)
|
||||||
|
|
@ -1093,7 +1043,6 @@ private fun MainAppContent(
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.padding(innerPadding),
|
.padding(innerPadding),
|
||||||
selectedTab = selectedTab,
|
selectedTab = selectedTab,
|
||||||
searchFocusRequestCount = searchFocusRequestCount,
|
|
||||||
animateHomeCollectionGifs = tabsRouteActive,
|
animateHomeCollectionGifs = tabsRouteActive,
|
||||||
onCatalogClick = onCatalogClick,
|
onCatalogClick = onCatalogClick,
|
||||||
onPosterClick = { meta ->
|
onPosterClick = { meta ->
|
||||||
|
|
@ -1148,13 +1097,7 @@ private fun MainAppContent(
|
||||||
if (isTabletLayout && !useNativeBottomTabs) {
|
if (isTabletLayout && !useNativeBottomTabs) {
|
||||||
TabletFloatingTopBar(
|
TabletFloatingTopBar(
|
||||||
selectedTab = selectedTab,
|
selectedTab = selectedTab,
|
||||||
onTabSelected = { tab ->
|
onTabSelected = { selectedTab = it },
|
||||||
if (tab == AppScreenTab.Search && selectedTab == AppScreenTab.Search) {
|
|
||||||
searchFocusRequestCount++
|
|
||||||
} else {
|
|
||||||
selectedTab = tab
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onProfileSelected = onProfileSelected,
|
onProfileSelected = onProfileSelected,
|
||||||
onAddProfileRequested = onSwitchProfile,
|
onAddProfileRequested = onSwitchProfile,
|
||||||
)
|
)
|
||||||
|
|
@ -1405,8 +1348,10 @@ private fun MainAppContent(
|
||||||
val maxAgeMs = playerSettings.streamReuseLastLinkCacheHours * 60L * 60L * 1000L
|
val maxAgeMs = playerSettings.streamReuseLastLinkCacheHours * 60L * 60L * 1000L
|
||||||
val cached = StreamLinkCacheRepository.getValid(cacheKey, maxAgeMs)
|
val cached = StreamLinkCacheRepository.getValid(cacheKey, maxAgeMs)
|
||||||
if (cached != null) {
|
if (cached != null) {
|
||||||
|
reuseNavigated = true
|
||||||
StreamsRepository.clear()
|
StreamsRepository.clear()
|
||||||
val playerLaunch = PlayerLaunch(
|
val launchId = PlayerLaunchStore.put(
|
||||||
|
PlayerLaunch(
|
||||||
title = launch.title,
|
title = launch.title,
|
||||||
sourceUrl = cached.url,
|
sourceUrl = cached.url,
|
||||||
sourceHeaders = sanitizePlaybackHeaders(cached.requestHeaders),
|
sourceHeaders = sanitizePlaybackHeaders(cached.requestHeaders),
|
||||||
|
|
@ -1431,13 +1376,7 @@ private fun MainAppContent(
|
||||||
initialPositionMs = launch.resumePositionMs ?: 0L,
|
initialPositionMs = launch.resumePositionMs ?: 0L,
|
||||||
initialProgressFraction = launch.resumeProgressFraction,
|
initialProgressFraction = launch.resumeProgressFraction,
|
||||||
)
|
)
|
||||||
if (playerSettings.externalPlayerEnabled) {
|
)
|
||||||
openExternalPlayback(playerLaunch)
|
|
||||||
reuseNavigated = true
|
|
||||||
return@LaunchedEffect
|
|
||||||
}
|
|
||||||
reuseNavigated = true
|
|
||||||
val launchId = PlayerLaunchStore.put(playerLaunch)
|
|
||||||
navController.navigate(PlayerRoute(launchId = launchId)) {
|
navController.navigate(PlayerRoute(launchId = launchId)) {
|
||||||
popUpTo<StreamRoute> { inclusive = true }
|
popUpTo<StreamRoute> { inclusive = true }
|
||||||
}
|
}
|
||||||
|
|
@ -1489,7 +1428,8 @@ private fun MainAppContent(
|
||||||
bingeGroup = stream.behaviorHints.bingeGroup,
|
bingeGroup = stream.behaviorHints.bingeGroup,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
val playerLaunch = PlayerLaunch(
|
val launchId = PlayerLaunchStore.put(
|
||||||
|
PlayerLaunch(
|
||||||
title = launch.title,
|
title = launch.title,
|
||||||
sourceUrl = sourceUrl,
|
sourceUrl = sourceUrl,
|
||||||
sourceHeaders = sanitizePlaybackHeaders(stream.behaviorHints.proxyHeaders?.request),
|
sourceHeaders = sanitizePlaybackHeaders(stream.behaviorHints.proxyHeaders?.request),
|
||||||
|
|
@ -1514,13 +1454,9 @@ private fun MainAppContent(
|
||||||
initialPositionMs = launch.resumePositionMs ?: 0L,
|
initialPositionMs = launch.resumePositionMs ?: 0L,
|
||||||
initialProgressFraction = launch.resumeProgressFraction,
|
initialProgressFraction = launch.resumeProgressFraction,
|
||||||
)
|
)
|
||||||
|
)
|
||||||
StreamsRepository.consumeAutoPlay()
|
StreamsRepository.consumeAutoPlay()
|
||||||
StreamsRepository.cancelLoading()
|
StreamsRepository.cancelLoading()
|
||||||
if (playerSettings.externalPlayerEnabled) {
|
|
||||||
openExternalPlayback(playerLaunch)
|
|
||||||
return@LaunchedEffect
|
|
||||||
}
|
|
||||||
val launchId = PlayerLaunchStore.put(playerLaunch)
|
|
||||||
navController.navigate(PlayerRoute(launchId = launchId)) {
|
navController.navigate(PlayerRoute(launchId = launchId)) {
|
||||||
popUpTo<StreamRoute> { inclusive = true }
|
popUpTo<StreamRoute> { inclusive = true }
|
||||||
}
|
}
|
||||||
|
|
@ -1536,14 +1472,27 @@ private fun MainAppContent(
|
||||||
return@composable
|
return@composable
|
||||||
}
|
}
|
||||||
|
|
||||||
fun openSelectedStream(
|
StreamsScreen(
|
||||||
stream: com.nuvio.app.features.streams.StreamItem,
|
type = launch.type,
|
||||||
resolvedResumePositionMs: Long?,
|
videoId = effectiveVideoId,
|
||||||
resolvedResumeProgressFraction: Float?,
|
parentMetaId = launch.parentMetaId ?: effectiveVideoId,
|
||||||
forceExternal: Boolean,
|
parentMetaType = launch.parentMetaType ?: launch.type,
|
||||||
forceInternal: Boolean,
|
title = launch.title,
|
||||||
) {
|
logo = launch.logo,
|
||||||
val sourceUrl = stream.directPlaybackUrl ?: return
|
poster = launch.poster,
|
||||||
|
background = launch.background,
|
||||||
|
seasonNumber = launch.seasonNumber,
|
||||||
|
episodeNumber = launch.episodeNumber,
|
||||||
|
episodeTitle = launch.episodeTitle,
|
||||||
|
episodeThumbnail = launch.episodeThumbnail,
|
||||||
|
resumePositionMs = launch.resumePositionMs,
|
||||||
|
resumeProgressFraction = launch.resumeProgressFraction,
|
||||||
|
manualSelection = launch.manualSelection,
|
||||||
|
startFromBeginning = launch.startFromBeginning,
|
||||||
|
onStreamSelected = { stream, resolvedResumePositionMs, resolvedResumeProgressFraction ->
|
||||||
|
val sourceUrl = stream.directPlaybackUrl
|
||||||
|
if (sourceUrl != null) {
|
||||||
|
// Persist for Reuse Last Link
|
||||||
if (playerSettings.streamReuseLastLinkEnabled) {
|
if (playerSettings.streamReuseLastLinkEnabled) {
|
||||||
val cacheKey = StreamLinkCacheRepository.contentKey(
|
val cacheKey = StreamLinkCacheRepository.contentKey(
|
||||||
type = launch.type,
|
type = launch.type,
|
||||||
|
|
@ -1565,7 +1514,8 @@ private fun MainAppContent(
|
||||||
bingeGroup = stream.behaviorHints.bingeGroup,
|
bingeGroup = stream.behaviorHints.bingeGroup,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
val playerLaunch = PlayerLaunch(
|
val launchId = PlayerLaunchStore.put(
|
||||||
|
PlayerLaunch(
|
||||||
title = launch.title,
|
title = launch.title,
|
||||||
sourceUrl = sourceUrl,
|
sourceUrl = sourceUrl,
|
||||||
sourceHeaders = sanitizePlaybackHeaders(stream.behaviorHints.proxyHeaders?.request),
|
sourceHeaders = sanitizePlaybackHeaders(stream.behaviorHints.proxyHeaders?.request),
|
||||||
|
|
@ -1590,54 +1540,12 @@ private fun MainAppContent(
|
||||||
initialPositionMs = resolvedResumePositionMs ?: 0L,
|
initialPositionMs = resolvedResumePositionMs ?: 0L,
|
||||||
initialProgressFraction = resolvedResumeProgressFraction,
|
initialProgressFraction = resolvedResumeProgressFraction,
|
||||||
)
|
)
|
||||||
|
)
|
||||||
if (!forceInternal && (forceExternal || playerSettings.externalPlayerEnabled)) {
|
|
||||||
openExternalPlayback(playerLaunch)
|
|
||||||
StreamsRepository.cancelLoading()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
val launchId = PlayerLaunchStore.put(playerLaunch)
|
|
||||||
StreamsRepository.cancelLoading()
|
StreamsRepository.cancelLoading()
|
||||||
navController.navigate(
|
navController.navigate(
|
||||||
PlayerRoute(launchId = launchId)
|
PlayerRoute(launchId = launchId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
StreamsScreen(
|
|
||||||
type = launch.type,
|
|
||||||
videoId = effectiveVideoId,
|
|
||||||
parentMetaId = launch.parentMetaId ?: effectiveVideoId,
|
|
||||||
parentMetaType = launch.parentMetaType ?: launch.type,
|
|
||||||
title = launch.title,
|
|
||||||
logo = launch.logo,
|
|
||||||
poster = launch.poster,
|
|
||||||
background = launch.background,
|
|
||||||
seasonNumber = launch.seasonNumber,
|
|
||||||
episodeNumber = launch.episodeNumber,
|
|
||||||
episodeTitle = launch.episodeTitle,
|
|
||||||
episodeThumbnail = launch.episodeThumbnail,
|
|
||||||
resumePositionMs = launch.resumePositionMs,
|
|
||||||
resumeProgressFraction = launch.resumeProgressFraction,
|
|
||||||
manualSelection = launch.manualSelection,
|
|
||||||
startFromBeginning = launch.startFromBeginning,
|
|
||||||
onStreamSelected = { stream, resolvedResumePositionMs, resolvedResumeProgressFraction ->
|
|
||||||
openSelectedStream(
|
|
||||||
stream = stream,
|
|
||||||
resolvedResumePositionMs = resolvedResumePositionMs,
|
|
||||||
resolvedResumeProgressFraction = resolvedResumeProgressFraction,
|
|
||||||
forceExternal = false,
|
|
||||||
forceInternal = false,
|
|
||||||
)
|
|
||||||
},
|
|
||||||
onStreamActionOpen = { stream, openExternally, resolvedResumePositionMs, resolvedResumeProgressFraction ->
|
|
||||||
openSelectedStream(
|
|
||||||
stream = stream,
|
|
||||||
resolvedResumePositionMs = resolvedResumePositionMs,
|
|
||||||
resolvedResumeProgressFraction = resolvedResumeProgressFraction,
|
|
||||||
forceExternal = openExternally,
|
|
||||||
forceInternal = !openExternally,
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
onBack = {
|
onBack = {
|
||||||
StreamsRepository.clear()
|
StreamsRepository.clear()
|
||||||
|
|
@ -1722,6 +1630,9 @@ private fun MainAppContent(
|
||||||
onPosterClick = { meta ->
|
onPosterClick = { meta ->
|
||||||
navController.navigate(DetailRoute(type = meta.type, id = meta.id))
|
navController.navigate(DetailRoute(type = meta.type, id = meta.id))
|
||||||
},
|
},
|
||||||
|
onPosterLongClick = { meta ->
|
||||||
|
selectedPosterForActions = meta
|
||||||
|
},
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -1766,7 +1677,8 @@ private fun MainAppContent(
|
||||||
?.let(WatchProgressRepository::progressForVideo)
|
?.let(WatchProgressRepository::progressForVideo)
|
||||||
?.takeIf { it.isResumable }
|
?.takeIf { it.isResumable }
|
||||||
|
|
||||||
val playerLaunch = PlayerLaunch(
|
val launchId = PlayerLaunchStore.put(
|
||||||
|
PlayerLaunch(
|
||||||
title = item.title,
|
title = item.title,
|
||||||
sourceUrl = sourceUrl,
|
sourceUrl = sourceUrl,
|
||||||
sourceHeaders = emptyMap(),
|
sourceHeaders = emptyMap(),
|
||||||
|
|
@ -1788,12 +1700,8 @@ private fun MainAppContent(
|
||||||
parentMetaType = item.parentMetaType,
|
parentMetaType = item.parentMetaType,
|
||||||
initialPositionMs = resumeEntry?.lastPositionMs?.takeIf { it > 0L } ?: 0L,
|
initialPositionMs = resumeEntry?.lastPositionMs?.takeIf { it > 0L } ?: 0L,
|
||||||
initialProgressFraction = resumeEntry?.progressFraction?.takeIf { it > 0f },
|
initialProgressFraction = resumeEntry?.progressFraction?.takeIf { it > 0f },
|
||||||
|
),
|
||||||
)
|
)
|
||||||
if (playerSettingsUiState.externalPlayerEnabled) {
|
|
||||||
openExternalPlayback(playerLaunch)
|
|
||||||
return@DownloadsScreen
|
|
||||||
}
|
|
||||||
val launchId = PlayerLaunchStore.put(playerLaunch)
|
|
||||||
navController.navigate(PlayerRoute(launchId = launchId))
|
navController.navigate(PlayerRoute(launchId = launchId))
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
@ -2102,7 +2010,6 @@ private fun rememberGuardedPopBackStack(
|
||||||
private fun AppTabHost(
|
private fun AppTabHost(
|
||||||
selectedTab: AppScreenTab,
|
selectedTab: AppScreenTab,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
searchFocusRequestCount: Int = 0,
|
|
||||||
animateHomeCollectionGifs: Boolean = true,
|
animateHomeCollectionGifs: Boolean = true,
|
||||||
onCatalogClick: ((HomeCatalogSection) -> Unit)? = null,
|
onCatalogClick: ((HomeCatalogSection) -> Unit)? = null,
|
||||||
onPosterClick: ((MetaPreview) -> Unit)? = null,
|
onPosterClick: ((MetaPreview) -> Unit)? = null,
|
||||||
|
|
@ -2150,7 +2057,6 @@ private fun AppTabHost(
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
onPosterClick = onPosterClick,
|
onPosterClick = onPosterClick,
|
||||||
onPosterLongClick = onPosterLongClick,
|
onPosterLongClick = onPosterLongClick,
|
||||||
searchFocusRequestCount = searchFocusRequestCount,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue