Skip to content

Commit

Permalink
disable all auto download podcasts when disable the global flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mebarbosa committed Nov 4, 2024
1 parent 7092581 commit 0434844
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ class AutoDownloadSettingsFragment :

private fun handleNewEpisodesToggle(isEnabled: Boolean) {
lifecycleScope.launch {
if (!isEnabled) {
async(Dispatchers.IO) { podcastManager.updateAllAutoDownloadStatus(Podcast.AUTO_DOWNLOAD_OFF) }.await()
}
updateNewEpisodesSwitch(isEnabled)
updatePodcastsSummary()
}
Expand Down

0 comments on commit 0434844

Please sign in to comment.