Skip to content

Commit

Permalink
Avoid crash when accessing and dismissing episode details from up nex…
Browse files Browse the repository at this point in the history
…t queue (#1300)
  • Loading branch information
mchowning authored Aug 22, 2023
1 parent 5a76554 commit 1bd53d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class EpisodeFragment : BaseFragment() {
super.onDestroyView()
if (!viewModel.isFragmentChangingConfigurations) {
analyticsTracker.track(AnalyticsEvent.EPISODE_DETAIL_DISMISSED, mapOf(AnalyticsProp.Key.SOURCE to episodeViewSource.value))
podcastAndEpisodeDetailsCoordinator.onEpisodeDetailsDismissed()
podcastAndEpisodeDetailsCoordinator.onEpisodeDetailsDismissed?.invoke()
}
webView.cleanup()
webView = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import javax.inject.Singleton

@Singleton
class PodcastAndEpisodeDetailsCoordinator @Inject constructor() {
lateinit var onEpisodeDetailsDismissed: () -> Unit
var onEpisodeDetailsDismissed: (() -> Unit)? = null
}

0 comments on commit 1bd53d0

Please sign in to comment.