From c519b3f99d5b03f8c52c8d881033c8d5ec6b8b6a Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 9 Feb 2021 11:36:26 +0100 Subject: Modified News object and val industryNews --- app/src/main/java/xyz/adjutor/aniki/MainActivity.kt | 2 +- app/src/main/java/xyz/adjutor/aniki/News.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/xyz/adjutor/aniki/MainActivity.kt b/app/src/main/java/xyz/adjutor/aniki/MainActivity.kt index 59f9a42..f4ded55 100644 --- a/app/src/main/java/xyz/adjutor/aniki/MainActivity.kt +++ b/app/src/main/java/xyz/adjutor/aniki/MainActivity.kt @@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show() } - val industryNews = News("Horror Manga Ajin Ends Nine-Year Serialization") + val industryNews = News(0,"Horror Manga Ajin Ends Nine-Year Serialization","Gamon Sakurai's Ajin (Ajin: Demi-Human) manga ended its nine-year run in the March issue of good! Afternoon on Friday.") } diff --git a/app/src/main/java/xyz/adjutor/aniki/News.kt b/app/src/main/java/xyz/adjutor/aniki/News.kt index c4e5759..dea3516 100644 --- a/app/src/main/java/xyz/adjutor/aniki/News.kt +++ b/app/src/main/java/xyz/adjutor/aniki/News.kt @@ -1,5 +1,7 @@ package xyz.adjutor.aniki data class News ( - val title: String + val id: Int, + val title: String, + val description: String ) \ No newline at end of file -- cgit v1.2.3