Automattic / pocket-casts-android

Pocket Casts Android 🎧
https://forums.pocketcasts.com
Mozilla Public License 2.0
2.58k stars 220 forks source link

Sort starred podcasts screen with most recently starred first #65

Open mchowning opened 2 years ago

mchowning commented 2 years ago

iOS and the web player sort the starred podcasts with the most recently starred podcast first. Android appears to do the opposite and put the most recently starred last. We should update this to be consistent with the web and iOS (retrieving this data from the server if necessary).

geekygecko commented 2 years ago

Here are some more details from the duplicate issue.

In the Profile -> Starred episodes list the order should be the time the user starred it. This would make it consistent with the Web Player. At the moment there doesn't seem to be an order for the episodes on Android.

Steps to repeat

  1. Star an episode in the Web Player
  2. Open the Starred episode list
  3. On Android refresh
  4. Open the Profile -> Starred episode list

Expected Both the Web Player and Android starred lists should have the episode just starred at the top of the list.

Actual The Web Player has the episode at the top of the list, on Android the episodes are in a random order.

geekygecko commented 2 years ago

I have had a look through the iOS code, it calls off to the User Sync API "starred/list" to get the list of episodes (RetrieveStarredTask.swift). We will have to do the same on Android as we don't store the date the episode was starred.