mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2026-08-18 02:53:10 +00:00
Fix smart mark as played from paused (#8639)
### Description Fix smart mark as played from paused state. Reported on the forum here: https://forum.antennapod.org/t/3-12-0-beta-bugs-in-playback-service-rewrite/8588/68?u=bytehamster While we are at it, this also fixes #6567 ### Checklist <!-- To help us keep the issue tracker clean and work as efficient as possible, please make sure that you have done all of the following. You can tick the boxes below by placing an x inside the brackets like this: [x] --> - [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 - [x] 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) - [x] If it is a core feature, I have added automated tests
This commit is contained in:
committed by
GitHub
parent
b25adc2e82
commit
87b2eb9038
@ -464,6 +464,10 @@ public class Media3PlaybackService extends MediaLibraryService {
|
||||
mediaLoaderDisposable.dispose();
|
||||
}
|
||||
mediaLoaderDisposable = Single.fromCallable(() -> {
|
||||
long previousMediaId = PlaybackPreferences.getCurrentlyPlayingFeedMediaId();
|
||||
if (previousMediaId != PlaybackPreferences.NO_MEDIA_PLAYING && previousMediaId != mediaId) {
|
||||
updateDatabaseAfterPlayback(DBReader.getFeedMedia(previousMediaId), false, false, true);
|
||||
}
|
||||
FeedMedia media = DBReader.getFeedMedia(mediaId);
|
||||
ChapterUtils.loadChapters(media, this, false);
|
||||
return media;
|
||||
|
||||
Reference in New Issue
Block a user