Improve paused track switching and mini-player swipe controls - #2869
Open
aayushrambo8 wants to merge 2 commits into
Open
aayushrambo8 wants to merge 2 commits into
aayushrambo8 wants to merge 2 commits into
Conversation
Make manual track changes start playback when the player is paused and replace mini-player swipe-to-dismiss behavior with track navigation. - Swipe left on the collapsed mini-player to play the next track. - Swipe right to play the previous track without dismissing or clearing the current queue. - Resume playback after switching tracks from the app controls, widget, and Wear OS controls when a destination track is available. - Preserve previous-track behavior: when the current track has played for more than 10 seconds, restart it without resuming playback. - Add PlaybackStateHolder tests for paused next/previous behavior and restarting the current track while paused. - Reduce Gradle workers from 6 to 2 and configure a 3 GB Kotlin daemon heap to reduce compiler memory pressure. - Remove an unnecessary safe call when reading the non-null album name in AI playlist generation. - Update the Gradle wrapper to 9.7.1. Validation: - PlaybackStateHolderTest passes. - Debug APK build succeeds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes it easier to change tracks and ensures playback resumes appropriately:
Validation: PlaybackStateHolderTest passes, and the mobile debug APK builds successfully.
PS: I have made these changes using AI, but I did frame everything out: how and what system must be followed. This is my 1st public pull, so if you reject it, please tell me what is wrong with it.