Skip to content

Commit

Permalink
fix: add albums on similar to
Browse files Browse the repository at this point in the history
  • Loading branch information
Malopieds committed Jun 30, 2024
1 parent 5566097 commit ff45c9a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/src/main/java/com/malopieds/innertune/ui/screens/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
import com.google.accompanist.swiperefresh.SwipeRefresh
import com.google.accompanist.swiperefresh.rememberSwipeRefreshState
import com.malopieds.innertube.models.AlbumItem
import com.malopieds.innertube.models.Artist
import com.malopieds.innertube.models.ArtistItem
import com.malopieds.innertube.models.PlaylistItem
Expand Down Expand Up @@ -438,6 +439,8 @@ fun HomeScreen(
)
}
}
is AlbumItem -> navController.navigate("album/${item.id}")

else -> navController.navigate("artist/${item.id}")
}

Expand Down Expand Up @@ -467,6 +470,14 @@ fun HomeScreen(
)
}

is AlbumItem -> {
YouTubeAlbumMenu(
albumItem = item,
navController = navController,
onDismiss = menuState::dismiss
)
}

else -> {
}
}
Expand Down Expand Up @@ -737,6 +748,8 @@ fun HomeScreen(
)
}
}
is AlbumItem -> navController.navigate("album/${item.id}")

else -> navController.navigate("artist/${item.id}")
}

Expand Down Expand Up @@ -766,6 +779,14 @@ fun HomeScreen(
)
}

is AlbumItem -> {
YouTubeAlbumMenu(
albumItem = item,
navController = navController,
onDismiss = menuState::dismiss
)
}

else -> {
}
}
Expand Down Expand Up @@ -959,6 +980,7 @@ fun HomeScreen(
)
}
}
is AlbumItem -> navController.navigate("album/${item.id}")

else -> navController.navigate("artist/${item.id}")
}
Expand Down Expand Up @@ -989,6 +1011,14 @@ fun HomeScreen(
)
}

is AlbumItem -> {
YouTubeAlbumMenu(
albumItem = item,
navController = navController,
onDismiss = menuState::dismiss
)
}

else -> {
}
}
Expand Down

0 comments on commit ff45c9a

Please sign in to comment.