diff options
Diffstat (limited to 'app/src/main/java/xyz/adjutor')
4 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt b/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt index 68af902..4579c69 100644 --- a/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt @@ -24,7 +24,7 @@ class ArticlePage : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.findViewById<Button>(R.id.home).setOnClickListener { + view.findViewById<Button>(R.id.button_home).setOnClickListener { findNavController().navigate(R.id.action_ArticlePage_to_HomePage) } } diff --git a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt index 8b932ee..d252755 100644 --- a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt @@ -25,13 +25,13 @@ class HomePage : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.findViewById<Button>(R.id.news).setOnClickListener { + view.findViewById<Button>(R.id.button_news).setOnClickListener { findNavController().navigate(R.id.action_HomePage_to_NewsPage) } - view.findViewById<Button>(R.id.article).setOnClickListener { + view.findViewById<Button>(R.id.button_article).setOnClickListener { findNavController().navigate(R.id.action_HomePage_to_ArticlePage) } - view.findViewById<Button>(R.id.top_manga).setOnClickListener { + view.findViewById<Button>(R.id.button_top_manga).setOnClickListener { findNavController().navigate(R.id.action_HomePage_to_TopMangaPage) } } diff --git a/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt b/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt index 6d7b10d..90be1bd 100644 --- a/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt @@ -24,7 +24,7 @@ class NewsPage : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.findViewById<Button>(R.id.home).setOnClickListener { + view.findViewById<Button>(R.id.button_home).setOnClickListener { findNavController().navigate(R.id.action_NewsPage_to_HomePage) } //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/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt index 32d3ce6..17d124e 100644 --- a/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt +++ b/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt @@ -23,7 +23,7 @@ class TopMangaPage : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.findViewById<Button>(R.id.home).setOnClickListener { + view.findViewById<Button>(R.id.button_home).setOnClickListener { findNavController().navigate(R.id.action_TopMangaPage_to_HomePage) } |