Skip to content

Commit

Permalink
Fix starring episode from full-screen player does not prevent episode…
Browse files Browse the repository at this point in the history
… from being archived (#1735)
  • Loading branch information
ashiagr authored Jan 24, 2024
1 parent 09ed03e commit 1de8332
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
7.57
-----

* Bug Fixes:
* Fixed starring episode from full-screen player does not prevent episode from being archived
([#1735](https://github.com/Automattic/pocket-casts-android/pull/1735))

7.56
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ class EpisodeManagerImpl @Inject constructor(
episodeDao.updateStarred(starred, System.currentTimeMillis(), episode.uuid)
val event =
if (starred) {
AnalyticsEvent.EPISODE_UNSTARRED
} else {
AnalyticsEvent.EPISODE_STARRED
} else {
AnalyticsEvent.EPISODE_UNSTARRED
}
episodeAnalytics.trackEvent(event, sourceView, episode.uuid)
}
Expand All @@ -422,7 +422,8 @@ class EpisodeManagerImpl @Inject constructor(
override suspend fun toggleStarEpisode(episode: PodcastEpisode, sourceView: SourceView) {
// Retrieve the episode to make sure we have the latest starred status
findByUuid(episode.uuid)?.let {
starEpisode(episode, !it.isStarred, sourceView)
episode.isStarred = !it.isStarred
starEpisode(episode, episode.isStarred, sourceView)
}
}

Expand Down

0 comments on commit 1de8332

Please sign in to comment.