mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 13:55:58 +00:00
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:
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>) {
|
||||
|
||||
Reference in new issue
Block a user