Otter-App-Android-Funkwhale/app/src/main/java/com/github/apognu/otter/utils
Antoine POPINEAU 490de25b05
Handle radios when logged in anonymously.
On top this fix, this commit adds support for "My content" and
"Favorites" instance radios (fixes #51), as well as clearly separates instance
radios from user radios.

Radios were a bit unusable when not logged in with an actual authorized
user account, this commit fixes the following elements:

 * Anonymous users get a transient session cookie when starting a radio
   session that was not stored and forwarded on playback, meaning no
   radios would play;
 * Anonymous users do not have their own own content. Thus, only the
   "Random" radio makes sense in that context. This commit only display
   the instance radios that are relevant to your authentication status.

"My content" radios needs the user ID to function properly, this commit
also adds retrieving it from the /api/v1/users/users/me/ endpoint, which
now may be used in the future for other purposes.
2020-06-21 13:41:27 +02:00
..
AppContext.kt Initial handling of track downloads. 2020-06-14 20:28:05 +02:00
Data.kt Cache if playback is in radio mode to be able to continue after app gets killed. 2020-05-31 02:39:32 +02:00
EventBus.kt Fixed an issue where the main playback UI would freeze when skipping an erroring track (in airplane mode, for example). 2020-06-20 22:10:13 +02:00
Extensions.kt Better handling of download progress and event. Added an option to retry failed downloads. Performance improvement around downloads UI. 2020-06-14 20:32:48 +02:00
Models.kt Handle radios when logged in anonymously. 2020-06-21 13:41:27 +02:00
Userinfo.kt Handle radios when logged in anonymously. 2020-06-21 13:41:27 +02:00
Util.kt Frontend logic for displaying only own music. 2020-06-14 20:26:39 +02:00