summaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 20:03:25 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-02-22 20:03:25 +0100
commit4012256bf91ccf02eb1871229f755beb26dad3de (patch)
treeae8521428bdde7750294d25c8e49a93df9e95f26 /app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
parent893c9110c99cff286011e3d35acb39ba65a97476 (diff)
parent494455de615340599cf2cdba0f3f199a47bf5a66 (diff)
Merge branch 'feature/elements_detail' into developrelease/2.0
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
index 697ba6f..f99cd9a 100644
--- a/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/topmanga/TopMangaPage.kt
@@ -37,7 +37,7 @@ class TopMangaPage : Fragment() {
// Inflate the layout for this fragment
val view = inflater.inflate(R.layout.top_manga_page, container, false)
- sharedPreferences = view.context.getSharedPreferences("app_aniki", Context.MODE_PRIVATE)
+ sharedPreferences = view.context.getSharedPreferences("sp_manga", Context.MODE_PRIVATE)
val mangaList: List<TopManga>? = getDataFromCache()
if(mangaList != null ){
@@ -96,7 +96,7 @@ class TopMangaPage : Fragment() {
val mangaList: List<TopManga> = response.body()!!.getResults() //getting the "top" field containing our list of TopMangas
saveList(mangaList)
- showList(view, mangaList) // calling the method in charge of displaying on the recyclerview
+ showList(view, mangaList) //calling the method in charge of displaying on the recyclerview
} else {
showError() //a snackbar
@@ -120,7 +120,7 @@ class TopMangaPage : Fragment() {
}
private fun showError() {
- Snackbar.make(requireView(), "HA? YOU THOUGHT IT WAS AN API !? BUT IT WAS I, ERROR !", Snackbar.LENGTH_LONG)
+ Snackbar.make(requireView(), "API ERROR", Snackbar.LENGTH_LONG)
.setAction("Action", null).show()
}