feat(library): add a Favorites tab and a heart button on the game page (#2613)

* Add a Favorites tab to the Library with a heart on the game page

* Fix favorites test helper call
This commit is contained in:
FX1922 authored and GitHub committed 2026-11-14 10:08:27 -05:00
1 parent 76c4de5b5d
commit 50fbcf8b2a
5 files changed
+134 -8

No files matched your search

@@ -277,6 +277,12 @@ object SessionPrefs {
prefs(context).edit().putBoolean("libraryShowUninstalled", show).apply()
}
fun libraryFavorites(context: Context): Set<String> = prefs(context).getStringSet("libraryFavorites", null)?.toSet().orEmpty()
fun setLibraryFavorites(context: Context, keys: Set<String>) {
prefs(context).edit().putStringSet("libraryFavorites", keys.toSet()).apply()
}
fun storesTabOrder(context: Context): List<String> = idList(prefs(context).getString("storesTabOrder", null))
fun setStoresTabOrder(context: Context, order: List<String>) {