Skip to content

Commit

Permalink
Hide navigation rail on reader screen
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulyaara committed Apr 23, 2024
1 parent 3019e9f commit e971cce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/kafka/user/home/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ internal fun Home(
val maxWidth = maxWidth

Row(Modifier.fillMaxSize()) {
if (isWideLayout) {
if (isWideLayout && shouldShowBottomBar(navController)) {
ResizableHomeNavigationRail(
availableWidth = maxWidth,
selectedTab = selectedTab,
navController = navController,
analytics = analytics,
onPlayingArtistClick = {
navController.navigate(Screen.Search.createRoute(RootScreen.Search, nowPlaying.artist))
navController.navigate(
Screen.Search.createRoute(RootScreen.Search, nowPlaying.artist)
)
},
)
}
Expand Down

0 comments on commit e971cce

Please sign in to comment.