Copilot 7c768dceca Improve deletion from local folders (#8440)
### Description

Fix two issues with deleting episodes from local folder subscriptions:

1. **#8425**: The Delete action button was missing from the
single-episode detail screen for local folder items. In
`ItemFragment.java`, `actionButton2` was only set to
`DeleteActionButton` when `media.isDownloaded()` — but local feed media
is never "downloaded" in the traditional sense, so the button was never
shown. Added `item.getFeed().isLocalFeed()` to the condition.

2. **#8424**: The multi-select Delete action silently did nothing for
local folder items. The `performMultiSelectAction` method runs on a
`Schedulers.computation()` background thread, but
`LocalDeleteModal.showLocalFeedDeleteWarningIfNecessary` needs to show a
dialog on the main thread. Wrapped the call in
`activity.runOnUiThread()` in `EpisodeMultiSelectActionHandler` so the
confirmation dialog is shown (or deletion proceeds directly for
non-local items).

Both fixes ensure the local-folder delete warning dialog is still shown
when appropriate.

Closes: #8424
Closes: #8425

### Checklist
- [x] I have read the contribution guidelines:
https://github.com/AntennaPod/AntennaPod/blob/develop/CONTRIBUTING.md#submit-a-pull-request
- [x] I have performed a self-review of my code, going through my
changes line by line and carefully considering why this line change is
necessary
- [ ] I have run the automated code checks using `./gradlew checkstyle
lint`
- [x] My code follows the style guidelines of the AntennaPod project:
https://antennapod.org/contribute/develop/app/code-style
- [x] I have mentioned the corresponding issue and the relevant keyword
(e.g., "Closes: #xy") in the description (see
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
- [ ] If it is a core feature, I have added automated tests

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ByteHamster <5811634+ByteHamster@users.noreply.github.com>
Co-authored-by: ByteHamster <info@bytehamster.com>
2026-05-20 10:38:00 +02:00
2026-05-14 14:17:54 +02:00
2026-05-14 14:17:54 +02:00
2026-05-19 12:13:46 +02:00
2026-05-14 14:17:54 +02:00
2026-05-14 14:17:54 +02:00
2026-05-14 14:17:54 +02:00
2026-05-14 14:17:54 +02:00
2026-05-14 14:17:54 +02:00

AntennaPod

GitHub check runs License: GPL v3 GitHub Release https://img.shields.io/github/commits-since/AntennaPod/AntennaPod/latest/develop Translations on Weblate Good first issue

This is the official repository of AntennaPod, the easy-to-use, flexible and open-source podcast manager for Android.

Get it on Google Play Get it on F-Droid

Screenshot 0 Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5

Feedback

You can use the AntennaPod Forum for discussions about the app or just podcasting in general.

Bug reports and feature requests can be submitted here (please read the instructions on how to report a bug and how to submit a feature request first!).

We also hold regular community calls to discuss anything AntennaPod-related. Come join the next call!

Help to test AntennaPod

AntennaPod has many users and we don't want them to run into trouble when we add a new feature. It's important that we have a significant group test our app, so that we know all possible combinations of phones, Android versions and use cases work as expected. Check out our wiki on how to join our Beta testing program! If a bug is reported during the beta period, chances are high that it will be fixed before the upcoming stable version. If it is reported later, fixing might take another full beta cycle. So definitely let us know if something is not right.

License

AntennaPod is licensed under the GNU General Public License (GPL-3.0). You can find the license text in the LICENSE file.

Translating AntennaPod

If you want to translate AntennaPod into another language, you can visit our Weblate page.

Building AntennaPod

You can build AntennaPod just like any other Android project. Refer to the instructions for more details.

Languages
Java 98%
Kotlin 1.1%
Python 0.6%
Shell 0.2%
HTML 0.1%