-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add favorites #34
Add favorites #34
Conversation
@Abestanis would you like to review this? I understand this is a lot of code changes, but I thought it could be interesting to you. |
I love this feature! ❤️ I didn't look at the code yet, but just playing around with it in an emulator, and I noticed two things.
Also, a suggestion:
|
Ok, according to the documentation, the system is supposed to show a prompt. But, the prompt is immediately dismissed on API 30, and there is no prompt on API 32 (both are emulators). Since there is no way to get rid of the prompt, I think we should at least add a setting to disable synchronizing favorites with the Android media store. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it took me a bit to go through everything. It looks really good, apart from one bug, I just left a couple of suggestions.
One final suggestion is that tapping on the hearts in the songs list should remove their favorite state. Either that or it could be smaller, so it doesn't look like a touch target.
android/app/src/main/java/com/nt4f04und/sweyer/channels/ContentChannel.java
Outdated
Show resolved
Hide resolved
android/app/src/main/java/com/nt4f04und/sweyer/channels/ContentChannel.java
Outdated
Show resolved
Hide resolved
android/app/src/main/java/com/nt4f04und/sweyer/handlers/FetchHandler.java
Show resolved
Hide resolved
Thank you for this review!
I'll look into this (and the other bug you mentioned about synchronisation with the MediaStore) a bit later, I agree that it would be better to move it out from the bottom tab panel. |
You have done very well, by the way! I can imagine how hard it was to review so many unfamiliar code 💀 |
@Abestanis you can check it out now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that there is currently no way to filter for favorites in the playlist and album detail view, nor in the album list of an artist.
Also, have you noticed how awesome the image comparison is on GitHub?
If we make it comply with the global favorite filter button, it will be confusing, because you can open an album that you makred as favorite, and then it will not have any songs marked as favorite, so it will appear entirely empty and you will need to constantly switch it on and off. So the way I could see this work is it would be a per-page favorites filter, so when you close album/playlist/artist route, it would be reset. But it seems like it would be a little bit confusing as to how the button would act if you press it. I think I'm going to keep it as-is right now. |
@Abestanis thank you for the detailed review again! I think this is good to merge now, the only thing here left I would want to is to make sure the translation is OK, could you check this comment? :-) #34 (comment) |
Me too, I have a couple of additional thoughts but if we want to act on them we can do it in a second iteration and another pull request.
Yeah, I see what you mean. Ultimately, I feel like this would be better as a per page filter and not a global filter. Maybe synchronize the favorite filter state in the main tabs, but keep it separate for any nested pages. But it's good as it is right now, this could be an enhancement in the future. It would be nice to hear what other people think. I must admit, I'm not an UI designer and I'm just going with my gut feeling. 😅 |
When I designed the actions, I had played with a few variations of how the actions should animate, and ultimately decided that it will always be just from the left. If you have a suggestion how it would look better, definitely open a new issue.
Thanks, removed 8 pixel padding.
Nope, that's a side effect of a refactor that I didn't notice, sharp eyes! Fixed by converting ListTile to custom code (as with other tiles) |
Also fixes #46