feat: auth screen with auto-redirect, sync favorites/history with backend

This commit is contained in:
nk
2026-06-02 19:12:07 +03:00
parent d4adb1e7be
commit a83672b455
2934 changed files with 97351 additions and 163 deletions

View File

@@ -20,7 +20,7 @@ class PlayerService : MediaSessionService() {
override fun onCreate() {
super.onCreate()
mediaSession = MediaSession.Builder(this, playerController.exoPlayer)
mediaSession = MediaSession.Builder(this, playerController.player)
.setSessionActivity(
PendingIntent.getActivity(
this,
@@ -41,10 +41,7 @@ class PlayerService : MediaSessionService() {
}
override fun onDestroy() {
mediaSession?.run {
player.release()
release()
}
mediaSession?.release()
mediaSession = null
super.onDestroy()
}