From 494455de615340599cf2cdba0f3f199a47bf5a66 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Mon, 22 Feb 2021 20:00:36 +0100 Subject: Removing background because most dont seem to have one. --- .../xyz/adjutor/aniki/anime/RestAnimeResponse.kt | 3 -- .../aniki/topanime/DetailTopAnimeActivity.kt | 7 ----- .../main/res/layout/activity_detail_top_anime.xml | 35 ---------------------- 3 files changed, 45 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt b/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt index 747ddaf..aa15dfd 100644 --- a/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt +++ b/app/src/main/java/xyz/adjutor/aniki/anime/RestAnimeResponse.kt @@ -8,7 +8,4 @@ class RestAnimeResponse{ //only kept the infos I didn't have and that were inter var mal_id: Int? = null @SerializedName("synopsis") var synopsis: String? = null - @SerializedName("background") - var background: String? = null - } diff --git a/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt b/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt index 383c73e..3f1d008 100644 --- a/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/topanime/DetailTopAnimeActivity.kt @@ -149,16 +149,9 @@ class DetailTopAnimeActivity : AppCompatActivity() { private fun showDetail(anime: RestAnimeResponse) { //elements from RestAnimeResponse val tvSynopsis: TextView = findViewById(R.id.tv_synopsis) - val tvBackground: TextView = findViewById(R.id.tv_background) tvSynopsis.text = anime.synopsis.toString() - tvBackground.text = if (anime.background != null){ - anime.background.toString() - } else { - fieldIsNull() - } - } fun showError(text: String) { diff --git a/app/src/main/res/layout/activity_detail_top_anime.xml b/app/src/main/res/layout/activity_detail_top_anime.xml index 6afa6ad..a982bdd 100644 --- a/app/src/main/res/layout/activity_detail_top_anime.xml +++ b/app/src/main/res/layout/activity_detail_top_anime.xml @@ -214,46 +214,11 @@ - - - - - - - - - - -