Skip to content

Commit

Permalink
fixed changing season on android
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Nov 14, 2023
1 parent 06cdba1 commit f0c7b22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ private fun CompactScreen(component: SeriesComponent) {
selectedLanguage = current.series.currentLanguage,
seasons = current.series.seasons,
languages = current.series.languages,
onSeasonClick = { },
onSeasonClick = { season ->
season?.let {
component.showDialog(DialogConfig.Season(it, current.series.seasons))
}
},
onLanguageClick = { }
)
}
Expand Down
5 changes: 5 additions & 0 deletions model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.serialization)
alias(libs.plugins.android.library)
id ("kotlin-parcelize") apply false
}

val artifact = VersionCatalog.artifactName("model")
Expand Down Expand Up @@ -32,6 +33,10 @@ kotlin {
androidMain.get().dependsOn(this)
}

androidMain.get().apply {
apply(plugin = "kotlin-parcelize")
}

jvmMain.get().dependencies {
api(libs.lang)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ data class Series(
@SerialName("title") val title: String
) : Parcelable

@Parcelize
@Serializable
data class Language(
@SerialName("value") val value: String,
@SerialName("title") val title: String
)
) : Parcelable

@Serializable
data class Episode(
Expand Down

0 comments on commit f0c7b22

Please sign in to comment.