mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-03 13:34:12 +01:00
Android Auto: Ensure that podcast are listed from newest to oldest
This commit is contained in:
1 parent
f68f31c80f
commit
a08ae6f977
1 file changed
+2
-2
@@ -621,8 +621,8 @@ class MediaManager(private var apiHandler: ApiHandler, var ctx: Context) {
|
|||||||
}
|
}
|
||||||
selectedLibraryItemId = libraryItemWrapper.id
|
selectedLibraryItemId = libraryItemWrapper.id
|
||||||
selectedPodcast = podcast
|
selectedPodcast = podcast
|
||||||
|
val episodes = podcast.episodes?.sortedByDescending { it.publishedAt }
|
||||||
val children = podcast.episodes?.map { podcastEpisode ->
|
val children = episodes?.map { podcastEpisode ->
|
||||||
|
|
||||||
val progress = serverUserMediaProgress.find { it.libraryItemId == libraryItemWrapper.id && it.episodeId == podcastEpisode.id }
|
val progress = serverUserMediaProgress.find { it.libraryItemId == libraryItemWrapper.id && it.episodeId == podcastEpisode.id }
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user