Skip to content

Commit

Permalink
Do not use deprecated startActivity function (#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSikora authored Feb 3, 2025
1 parent a02ba2e commit 6e745a3
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 @@ -679,7 +679,7 @@ class PodcastAdapter(
podcast.podcastUrl?.let { url ->
if (url.isNotBlank()) {
try {
startActivity(context, webUrlToIntent(url), null)
context.startActivity(webUrlToIntent(url), null)
} catch (e: Exception) {
Timber.e(e, "Failed to open podcast web page.")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ShareListCreateViewModel @Inject constructor(
type = "text/plain"
putExtra(Intent.EXTRA_TEXT, url)
}
startActivity(context, Intent.createChooser(intent, label), null)
context.startActivity(Intent.createChooser(intent, label), null)
trackShareEvent(
AnalyticsEvent.SHARE_PODCASTS_LIST_PUBLISH_SUCCEEDED,
AnalyticsProp.countMap(selectedPodcasts.size),
Expand Down

0 comments on commit 6e745a3

Please sign in to comment.