fix: hide recent if its empty
This commit is contained in:
parent
76e11e5a3e
commit
95b2939532
2 changed files with 46 additions and 35 deletions
|
@ -203,8 +203,12 @@ class AnimePageAdapter : RecyclerView.Adapter<AnimePageAdapter.AnimePageViewHold
|
|||
animeRecently
|
||||
)
|
||||
animePopular.visibility = View.VISIBLE
|
||||
binding.animePopular.startAnimation(setSlideUp())
|
||||
animePopular.startAnimation(setSlideUp())
|
||||
if (adaptor.itemCount == 0) {
|
||||
animeRecentlyContainer.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
fun updateMovies(adaptor: MediaAdaptor) {
|
||||
binding.apply{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue