Skip to content

Commit

Permalink
fix(ui): fix provider's what's new button not navigating to respectiv…
Browse files Browse the repository at this point in the history
…e screen
  • Loading branch information
rhenwinch committed Jun 11, 2024
1 parent 7178d04 commit b805c50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.flixclusive.feature.mobile.provider.ProvidersScreenNavigator
import com.flixclusive.feature.mobile.provider.info.ProviderInfoNavigator
import com.flixclusive.feature.mobile.provider.info.destinations.ProviderInfoScreenDestination
import com.flixclusive.feature.mobile.provider.settings.destinations.ProviderSettingsScreenDestination
import com.flixclusive.feature.mobile.provider.whats_new.destinations.ProviderWhatsNewScreenDestination
import com.flixclusive.feature.mobile.recentlyWatched.destinations.RecentlyWatchedScreenDestination
import com.flixclusive.feature.mobile.repository.destinations.RepositoryScreenDestination
import com.flixclusive.feature.mobile.repository.search.destinations.RepositorySearchScreenDestination
Expand Down Expand Up @@ -159,7 +160,9 @@ internal class MobileAppNavigator(
}

override fun seeWhatsNew(providerData: ProviderData) {
// TODO("Not yet implemented")
navController.navigateIfResumed(
ProviderWhatsNewScreenDestination(providerData = providerData) within destination.navGraph()
)
}

override fun openProviderInfo(providerData: ProviderData) {
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/kotlin/com/flixclusive/mobile/MobileNavGraphs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.flixclusive.feature.mobile.preferences.destinations.PreferencesScreen
import com.flixclusive.feature.mobile.provider.destinations.ProvidersScreenDestination
import com.flixclusive.feature.mobile.provider.info.destinations.ProviderInfoScreenDestination
import com.flixclusive.feature.mobile.provider.settings.destinations.ProviderSettingsScreenDestination
import com.flixclusive.feature.mobile.provider.whats_new.destinations.ProviderWhatsNewScreenDestination
import com.flixclusive.feature.mobile.recentlyWatched.destinations.RecentlyWatchedScreenDestination
import com.flixclusive.feature.mobile.repository.destinations.RepositoryScreenDestination
import com.flixclusive.feature.mobile.repository.search.destinations.RepositorySearchScreenDestination
Expand Down Expand Up @@ -67,6 +68,7 @@ internal object MobileNavGraphs {
RepositoryScreenDestination,
ProviderInfoScreenDestination,
ProviderSettingsScreenDestination,
ProviderWhatsNewScreenDestination,
).routedIn(this)
.associateBy { it.route }
}
Expand Down

0 comments on commit b805c50

Please sign in to comment.