summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt (renamed from app/src/main/java/xyz/adjutor/aniki/RestTopMangaResponse.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt (renamed from app/src/main/java/xyz/adjutor/aniki/TopManga.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt (renamed from app/src/main/java/xyz/adjutor/aniki/TopMangaAdapter.kt)3
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaApi.kt (renamed from app/src/main/java/xyz/adjutor/aniki/TopMangaApi.kt)2
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt (renamed from app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt)3
-rw-r--r--app/src/main/res/layout/top_manga_page.xml2
-rw-r--r--app/src/main/res/navigation/nav_graph.xml30
7 files changed, 9 insertions, 35 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/RestTopMangaResponse.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt
index 0a7ebc8..897e8a2 100644
--- a/app/src/main/java/xyz/adjutor/aniki/RestTopMangaResponse.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/RestTopMangaResponse.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki
+package xyz.adjutor.aniki.topmanga
import com.google.gson.annotations.SerializedName
diff --git a/app/src/main/java/xyz/adjutor/aniki/TopManga.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt
index 9cba192..edf561d 100644
--- a/app/src/main/java/xyz/adjutor/aniki/TopManga.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopManga.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki
+package xyz.adjutor.aniki.topmanga
import com.google.gson.annotations.SerializedName
diff --git a/app/src/main/java/xyz/adjutor/aniki/TopMangaAdapter.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
index 1478111..18fd7a0 100644
--- a/app/src/main/java/xyz/adjutor/aniki/TopMangaAdapter.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaAdapter.kt
@@ -1,6 +1,6 @@
@file:Suppress("DEPRECATION")
-package xyz.adjutor.aniki
+package xyz.adjutor.aniki.topmanga
import android.annotation.SuppressLint
import android.graphics.Bitmap
@@ -13,6 +13,7 @@ import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
+import xyz.adjutor.aniki.R
class TopMangaAdapter(val mangaList: List<TopManga>) :
RecyclerView.Adapter<TopMangaAdapter.MangaViewHolder>() {
diff --git a/app/src/main/java/xyz/adjutor/aniki/TopMangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaApi.kt
index b760233..69c4cdd 100644
--- a/app/src/main/java/xyz/adjutor/aniki/TopMangaApi.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaApi.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki
+package xyz.adjutor.aniki.topmanga
import retrofit2.http.GET
import retrofit2.Call
diff --git a/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
index 6606b6c..e4cd20d 100644
--- a/app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
@@ -1,4 +1,4 @@
-package xyz.adjutor.aniki
+package xyz.adjutor.aniki.topmanga
import android.os.Bundle
import android.view.LayoutInflater
@@ -16,6 +16,7 @@ import retrofit2.Callback
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
+import xyz.adjutor.aniki.R
class TopMangaPage : Fragment() {
diff --git a/app/src/main/res/layout/top_manga_page.xml b/app/src/main/res/layout/top_manga_page.xml
index ba19596..95c9161 100644
--- a/app/src/main/res/layout/top_manga_page.xml
+++ b/app/src/main/res/layout/top_manga_page.xml
@@ -5,7 +5,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".TopMangaPage"
+ tools:context=".topmanga.TopMangaPage"
android:background="@color/very_dark_purple">
<androidx.recyclerview.widget.RecyclerView
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
index d8d3b26..4a0cfa2 100644
--- a/app/src/main/res/navigation/nav_graph.xml
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -12,41 +12,13 @@
tools:layout="@layout/home_page">
<action
- android:id="@+id/action_HomePage_to_NewsPage"
- app:destination="@id/NewsPage" />
- <action
- android:id="@+id/action_HomePage_to_ArticlePage"
- app:destination="@id/ArticlePage" />
- <action
android:id="@+id/action_HomePage_to_TopMangaPage"
app:destination="@id/TopMangaPage" />
</fragment>
<fragment
- android:id="@+id/NewsPage"
- android:name="xyz.adjutor.aniki.NewsPage"
- android:label="@string/news_page_label"
- tools:layout="@layout/news_page">
-
- <action
- android:id="@+id/action_NewsPage_to_HomePage"
- app:destination="@id/HomePage" />
- </fragment>
-
- <fragment
- android:id="@+id/ArticlePage"
- android:name="xyz.adjutor.aniki.ArticlePage"
- android:label="@string/article_page_label"
- tools:layout="@layout/article_page">
-
- <action
- android:id="@+id/action_ArticlePage_to_HomePage"
- app:destination="@id/HomePage" />
- </fragment>
-
- <fragment
android:id="@+id/TopMangaPage"
- android:name="xyz.adjutor.aniki.TopMangaPage"
+ android:name="xyz.adjutor.aniki.topmanga.TopMangaPage"
android:label="@string/top_manga_page_label"
tools:layout="@layout/top_manga_page">