fix: remove some overhead when storing sets
This commit is contained in:
parent
8741d820ad
commit
95409f7eda
5 changed files with 20 additions and 63 deletions
|
@ -444,7 +444,7 @@ class AnilistQueries {
|
|||
}
|
||||
|
||||
|
||||
suspend fun getGenresAndTags(activity: Activity): Boolean {
|
||||
suspend fun getGenresAndTags(): Boolean {
|
||||
var genres: ArrayList<String>? = PrefManager.getVal<Set<String>>(PrefName.GenresList)
|
||||
.toMutableList() as ArrayList<String>?
|
||||
val adultTags = PrefManager.getVal<Set<String>>(PrefName.TagsListIsAdult).toMutableList()
|
||||
|
|
|
@ -104,7 +104,7 @@ class AnilistHomeViewModel : ViewModel() {
|
|||
if (!BuildConfig.FLAVOR.contains("fdroid")) {
|
||||
if (PrefManager.getVal(PrefName.CheckUpdate)) AppUpdater.check(context)
|
||||
}
|
||||
genres.postValue(Anilist.query.getGenresAndTags(context))
|
||||
genres.postValue(Anilist.query.getGenresAndTags())
|
||||
}
|
||||
|
||||
val empty = MutableLiveData<Boolean>(null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue