Repository: AntennaPod/AntennaPod (language: java)

Issue:
Sleep button doesn't reset after sleep limit is reached
### Checklist

- [X] I have used the search function for [**OPEN**](https://github.com/AntennaPod/AntennaPod/issues) issues to see if someone else has already submitted the same bug report.
- [X] I have **also** used the search function for [**CLOSED**](https://github.com/AntennaPod/AntennaPod/issues?q=is%3Aissue+is%3Aclosed) issues to see if the problem is already solved and just waiting to be released.
- [X] I will describe the problem with as much detail as possible.
- [X] If the bug only to occurs with a certain podcast, I will include the URL of that podcast.

### App version

3.4.0

### Where did you get the app from

Google Play

### Android version

Android 14

### Device model

bitra

### First occurred

_No response_

### Steps to reproduce

After sleep timer is hit the `zzz` icon at the end remains crossed out, suggesting that a sleep timer is still active, when in fact it is not.

### Expected behaviour

The sleep icon should reset so it's not crossed out anymore.

### Current behaviour

_No response_

### Logs

_No response_


Discussion / hints:
I have a pull request (#7247) that addresses this issue plus some other issues as well, and also adds ability to create sleep timers based on episode count.

I would really prefer for that PR to be accepted at one point and all issues addressed by it to be fixed when it's merged.
If this issue is resolved separately it will most definitely generate conflicts with my PR which addresses all these issues.

As I see that - even though the ability to have sleep timers based on episode count is **highly requested** and multiple PRs have been made to address it - pull requests dealing with sleep timers aren't readily accepted I will probably not invest the time to fix the conflicts that will arise if each of these issues is fixed separately, independently.

I am using my own version of the app to have the ability to create sleep timers based on episode count (as well as see the remaining time I have before the sleep timer is hit), so I personally have everything I need.

Fix patch:
diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/playback/audio/AudioPlayerFragment.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/playback/audio/AudioPlayerFragment.java
index 269de7d6e0..a5e94b8bf6 100644
--- a/app/src/main/java/de/danoeh/antennapod/ui/screen/playback/audio/AudioPlayerFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/playback/audio/AudioPlayerFragment.java
@@ -306,7 +306,7 @@ private void updateUi(Playable media) {
     @Subscribe(threadMode = ThreadMode.MAIN)
     @SuppressWarnings("unused")
     public void sleepTimerUpdate(SleepTimerUpdatedEvent event) {
-        if (event.isCancelled() || event.wasJustEnabled()) {
+        if (event.isCancelled() || event.wasJustEnabled() || event.isOver()) {
             AudioPlayerFragment.this.loadMediaInfo(false);
         }
     }


Test patch: