Skip to content

feat: persist album artists only filter across sessions#53

Merged
chrisuthe merged 1 commit intomainfrom
feat/sticky-album-artists-filter
Mar 7, 2026
Merged

feat: persist album artists only filter across sessions#53
chrisuthe merged 1 commit intomainfrom
feat/sticky-album-artists-filter

Conversation

@chrisuthe
Copy link
Copy Markdown
Owner

Summary

Makes the "Album Artists Only" filter chip in the Library Artists tab sticky -- once enabled, it stays enabled across app restarts, navigation, and ViewModel recreation.

Changes:

  • Add albumArtistsOnly boolean preference to UserSettings (SharedPreferences)
  • Initialize LibraryViewModel._artistsState with the saved value
  • Persist when the user toggles the filter chip

No UI changes -- the existing Material 3 FilterChip already provides clear selected/unselected visual feedback and tap-to-toggle interaction.

Test plan

  • Enable "Album Artists Only" filter, leave the Artists tab, come back -- filter should still be active
  • Enable filter, kill the app, reopen -- filter should still be active
  • Disable filter -- should persist as disabled

Save the album artists only filter state to SharedPreferences so it
survives app restarts and navigation. The existing FilterChip toggle
in the Artists tab now remembers its state -- tap to enable, tap again
to disable.
@chrisuthe chrisuthe merged commit ea242b8 into main Mar 7, 2026
@chrisuthe chrisuthe deleted the feat/sticky-album-artists-filter branch March 7, 2026 22:23
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