aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-19 14:17:15 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-19 14:17:15 +0100
commitcd37b807397b50b8e9c45389fc04679998e628db (patch)
tree1d4e58436f7d88c82b588c86fe99fce74ea09de3 /app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt
parent41bb476749fa84164726b728676b144531009446 (diff)
parentfa849021bf137fc4b245a8c0e7a2a8fc46d574df (diff)
Merge branch 'release/1.0' into develop
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt
index ee8a510..6606b6c 100644
--- a/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt
@@ -34,17 +34,19 @@ class TopMangaPage : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
+ //button to return to the home page
view.findViewById<Button>(R.id.button_home).setOnClickListener {
findNavController().navigate(R.id.action_TopMangaPage_to_HomePage)
}
}
+ //display the recyclerview
fun showList(view: View, mangaList: List<TopManga> ){
val recyclerView: RecyclerView = view.findViewById(R.id.recycler_view)
recyclerView.setHasFixedSize(true)
recyclerView.layoutManager = LinearLayoutManager(view.context)
- recyclerView.adapter = MangaAdapter(mangaList)
+ recyclerView.adapter = TopMangaAdapter(mangaList)
}
fun makeApiCall(view: View, BASE_URL: String) {