Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented "dislike" by long-tap & related fixes #5180

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

twistios
Copy link

@twistios twistios commented Jan 8, 2025

The idea is by @aneesh1122.

@twistios twistios changed the title added method for dislike in database implemented "dislike" by long-tap on like-icon in controls Jan 8, 2025
# Conflicts:
#	composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/player/components/controls/Essential.kt
- similar to `setLikeState`, but for disliking
- now uses `setDislikeState`, i.e. changes the value depending on the current value
@twistios
Copy link
Author

twistios commented Jan 9, 2025

I am working on toggling between disliked and "unliked".

- removed `dislike` from database as not needed anymore
- implemented toggling similar to like-toggle via `setDisLikeState`
# Conflicts:
#	composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/player/components/controls/Essential.kt
- did not work properly with disliked songs
- was automatically unliking songs if they where not in the db (so it seemed not to do anything on the first tap)
- added `getLikedAt` as was required (likedAt returns a flow)
- like a song if it was unliked/disliked
- insert the song into the db if it was not there
- also added smart message feedback to `AlbumDetails`, `LocalPlayListSongsModern`
- directly via long-tap (skipping the step via single-tap cycling)
- InfoAlbumAndArtistEssential/-Modern: single tap now is consistent with long tap (also does not dislike anymore)
- ControlsEssential: additionally (to changes in previous item) implemented autodownload-on-like
- now does not consider disliked songs as liked
@twistios twistios changed the title implemented "dislike" by long-tap on like-icon in controls implemented "dislike" by long-tap & related fixes Jan 10, 2025
- now don't consider disliked songs as liked
@twistios
Copy link
Author

This pull request also fixes autodownload, more toast message feedback, implements dislike in gridmenu where it was not previously existing. I guess there are still more places missing where dislike is missing/not consistent with this changes (maybe history, ...)

# Conflicts:
#	composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/components/themed/MediaItemGridMenu.kt
#	composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/components/themed/MediaItemMenu.kt
#	composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/album/AlbumDetails.kt
#	composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/playlist/PlaylistSongList.kt
@twistios
Copy link
Author

Another fix included is that disliked songs do not show as liked songs anymore.
A disliked-songs tab is currently WIP.

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.

1 participant