sailfish-spotify / hutspot

Spotify Controller for SailfishOS. Documentation: https://sailfish-spotify.github.io/hutspot.
MIT License
18 stars 12 forks source link

Wrong order in MyStuff views #108

Open ksiazkowicz opened 5 years ago

ksiazkowicz commented 5 years ago

Might be broken somewhere else as well, it's really easy to see when browsing Saved Albums for example.

All data in the list is currently in alphabetical order, but what we get from Spotify actually isn't returned in that order. When you scroll past certain threshold, next page is loaded from the API, but since the data is displayed in alphabetical order, new data will be added, for example, under "A" section, making scrolling look/act broken.

wdehoog commented 5 years ago

Any idea how to solve this? Jump to the top? Remove the sorting?

ksiazkowicz commented 5 years ago

I guess we'd have to remove the sorting or fetch all the data, then sort. For some reason you can't just ask Spotify to return it in alphabetical order.

wdehoog commented 5 years ago

How about loading all but with a configurable maximum. Then only if all items are loaded we enable sorting. New settings.

  1. Enable sorting of MyStuff lists (default true)
  2. Maximum number initially loaded (default 1000)