chore: cleanup
This commit is contained in:
parent
b829ed26f3
commit
92c663cd38
2 changed files with 9 additions and 9 deletions
|
@ -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) }
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue