chore: cleanup

This commit is contained in:
rebelonion 2024-02-08 05:11:28 -06:00
parent b829ed26f3
commit 92c663cd38
2 changed files with 9 additions and 9 deletions

View file

@ -96,7 +96,7 @@ class AnilistHomeViewModel : ViewModel() {
fun getRecommendation(): LiveData<ArrayList<Media>> = recommendation fun getRecommendation(): LiveData<ArrayList<Media>> = recommendation
suspend fun setRecommendation() = recommendation.postValue(Anilist.query.recommendations()) suspend fun setRecommendation() = recommendation.postValue(Anilist.query.recommendations())
suspend fun initHomePage() { suspend fun initHomePage() {
val res = Anilist.query.initHomePage() val res = Anilist.query.initHomePage()
res["currentAnime"]?.let { animeContinue.postValue(it) } res["currentAnime"]?.let { animeContinue.postValue(it) }

View file

@ -305,14 +305,14 @@ class HomeFragment : Fragment() {
} }
} }
val array = arrayOf( //deprecated: no longer should be run. only indices are used val array = arrayOf(
Runnable { runBlocking { model.setAnimeContinue() } }, "AnimeContinue",
Runnable { runBlocking { model.setAnimeFav() } }, "AnimeFav",
Runnable { runBlocking { model.setAnimePlanned() } }, "AnimePlanned",
Runnable { runBlocking { model.setMangaContinue() } }, "MangaContinue",
Runnable { runBlocking { model.setMangaFav() } }, "MangaFav",
Runnable { runBlocking { model.setMangaPlanned() } }, "MangaPlanned",
Runnable { runBlocking { model.setRecommendation() } } "Recommendation"
) )
val containers = arrayOf( val containers = arrayOf(