summaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-17 22:18:26 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-17 22:18:26 +0100
commit7e0e688d4bc59bddfd5e9e69b0da57607c1e56ed (patch)
tree73968a65054b77fcbde6019f41baad59888bba3a /app/src/main/java/xyz/adjutor/aniki
parentd49771c90315897e0fe6eb8d4034e36853bf6650 (diff)
Renaming to avoid issues with the "home" id.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/HomePage.kt6
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/NewsPage.kt2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt2
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)
}