Skip to content

feat: Save current playback queue as a playlist (#2092)#2095

Open
zaibihsn wants to merge 1 commit into
maxrave-dev:mainfrom
zaibihsn:feat-save-queue-playlist
Open

feat: Save current playback queue as a playlist (#2092)#2095
zaibihsn wants to merge 1 commit into
maxrave-dev:mainfrom
zaibihsn:feat-save-queue-playlist

Conversation

@zaibihsn
Copy link
Copy Markdown

Resolves #2092.

Description:
This PR introduces the ability to save the current playback queue directly to a new or existing playlist, eliminating the need for users to manually add songs one by one when discovering new tracks through radio or autoplay.

Changes Included:

UI: Added a "Save as Playlist" icon button to the top left of the QueueBottomSheet.

Flow: Tapping the button opens the existing AddToPlaylistModalBottomSheet, allowing the user to select an existing Local/YouTube playlist or create a brand new one.

Logic: Implemented saveQueueToLocalPlaylist and saveQueueToYouTubePlaylist in SharedViewModel to safely handle batch-saving the queue tracks on a background thread while preventing UI thread crashes.

Testing:

Verified successful batch saving to local playlists.

Verified successful batch saving to YouTube playlists.

Ensured Toast notifications safely execute on the Main UI thread without throwing NullPointerException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Save current queue as a playlist

1 participant