diff options
author | ByteHamster <info@bytehamster.com> | 2021-07-11 18:34:53 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-07-11 18:52:11 +0200 |
commit | 4f5449a0d3c8540b32a8d54c3c770d5fe91e554e (patch) | |
tree | f2af5ff84bb35bec470534c9b90b0136a75a1787 /app/src/main/java/de/danoeh/antennapod/adapter/actionbutton | |
parent | 55f7adb10609ad89627b56aafce7f8278dc884eb (diff) | |
download | AntennaPod-4f5449a0d3c8540b32a8d54c3c770d5fe91e554e.zip |
No longer show item-specific auto-download property to users
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter/actionbutton')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java index afa86c9d7..dedf8e5e6 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java @@ -3,7 +3,6 @@ package de.danoeh.antennapod.adapter.actionbutton; import android.content.Context; import androidx.annotation.DrawableRes; import androidx.annotation.StringRes; -import android.widget.Toast; import de.danoeh.antennapod.R; import de.danoeh.antennapod.model.feed.FeedItem; @@ -35,8 +34,8 @@ public class CancelDownloadActionButton extends ItemActionButton { FeedMedia media = item.getMedia(); DownloadRequester.getInstance().cancelDownload(context, media); if (UserPreferences.isEnableAutodownload()) { - DBWriter.setFeedItemAutoDownload(media.getItem(), false); - Toast.makeText(context, R.string.download_canceled_autodownload_enabled_msg, Toast.LENGTH_LONG).show(); + item.setAutoDownload(false); + DBWriter.setFeedItem(item); } } } |