summaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-20 13:30:17 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-20 13:30:17 +0100
commite41b93327626afba5427454dc2868cedf3f01972 (patch)
treec02f99657f8e96a2b56839a92c0e9784731ce8a7 /app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
parent83aca7a0d44ede3960fc5752a205a55f63321832 (diff)
parent893c9110c99cff286011e3d35acb39ba65a97476 (diff)
Merge branch 'release/1.2'v1.2.0
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
index 18fd7a0..22872b2 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
@@ -22,6 +22,7 @@ class TopMangaAdapter(val mangaList: List<TopManga>) :
class MangaViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val mangaTitle: TextView = itemView.findViewById(R.id.tv_title)
val mangaRank: TextView = itemView.findViewById(R.id.tv_rank)
+ val mangaScore: TextView = itemView.findViewById(R.id.tv_score)
val mangaImage: ImageView = itemView.findViewById(R.id.iv_image)
}
@@ -44,6 +45,7 @@ class TopMangaAdapter(val mangaList: List<TopManga>) :
val currentManga: TopManga = mangaList[position]
holder.mangaTitle.text = currentManga.title
holder.mangaRank.text = currentManga.rank.toString()
+ holder.mangaScore.text = currentManga.score.toString()
DownloadImageFromInternet(holder.mangaImage).execute(currentManga.image_url)
}