Port remove song of playlist from tempus ng (#457)

* feat: implement track removal from playlists with real-time UI updates

- Added 'Remove from playlist' option to song bottom sheet (appears only when inside a playlist)
- Implemented immediate UI refresh for track count and duration in playlist header
- Fixed a bug where shuffling for covers scrambled the actual playlist song order
- Improved PlaylistPageViewModel to clear stale data and handle isolated updates correctly
- Added dedicated success/failure messages for track removal in English and Italian
- Unified heart icon size to 14dp across all track list items

* fix: missing code from port process

The cherry-pick was missing the database getter
and the function to remove a song from a playlist

---------

Co-authored-by: beeetfarmer <176325048+beeetfarmer@users.noreply.github.com>
This commit is contained in:
Tom 2026-02-25 16:37:43 -03:00 committed by GitHub
parent b403d69982
commit 4f8212d491
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 256 additions and 20 deletions

View file

@ -164,6 +164,20 @@
android:paddingBottom="12dp"
android:text="@string/song_bottom_sheet_remove" />
<TextView
android:id="@+id/remove_from_playlist_text_view"
style="@style/LabelMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:paddingStart="20dp"
android:paddingTop="12dp"
android:paddingEnd="20dp"
android:paddingBottom="12dp"
android:text="@string/song_bottom_sheet_remove_from_playlist"
android:visibility="gone" />
<TextView
android:id="@+id/add_to_playlist_text_view"
style="@style/LabelMedium"