diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-21 18:24:25 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-21 18:24:25 +0100 |
commit | 94ab3bbeb21049ac1be128ee00dbae1570346123 (patch) | |
tree | 9e94bb6c4b733b19caffa9b13a73aacb0475a12f /app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt | |
parent | 6caf50512e0d5ec54493037ad5662229d8836eca (diff) |
Displaying the other infos from the TopManga API.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt')
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt index 697ba6f..c560ffd 100644 --- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt @@ -96,7 +96,7 @@ class TopMangaPage : Fragment() { val mangaList: List<TopManga> = response.body()!!.getResults() //getting the "top" field containing our list of TopMangas saveList(mangaList) - showList(view, mangaList) // calling the method in charge of displaying on the recyclerview + showList(view, mangaList) //calling the method in charge of displaying on the recyclerview } else { showError() //a snackbar @@ -120,7 +120,7 @@ class TopMangaPage : Fragment() { } private fun showError() { - Snackbar.make(requireView(), "HA? YOU THOUGHT IT WAS AN API !? BUT IT WAS I, ERROR !", Snackbar.LENGTH_LONG) + Snackbar.make(requireView(), "API ERROR", Snackbar.LENGTH_LONG) .setAction("Action", null).show() } |