diff options
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/presentation/controller')
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/presentation/controller/manga/DetailTopMangaController.kt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/controller/manga/DetailTopMangaController.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/controller/manga/DetailTopMangaController.kt index 2d99a45..807421c 100644 --- a/app/src/main/java/xyz/adjutor/aniki/presentation/controller/manga/DetailTopMangaController.kt +++ b/app/src/main/java/xyz/adjutor/aniki/presentation/controller/manga/DetailTopMangaController.kt @@ -22,7 +22,7 @@ class DetailTopMangaController { private lateinit var baseUrl: String //the api's base url lateinit var view: DetailTopMangaActivity - fun onStart(DetailTopMangaActivity: DetailTopMangaActivity) { + fun onStart(DetailTopMangaActivity: DetailTopMangaActivity, mangaId: String) { view = DetailTopMangaActivity baseUrl = "https://api.jikan.moe/" //the api's base url @@ -31,9 +31,7 @@ class DetailTopMangaController { .create() sharedPreferences = view.applicationContext.getSharedPreferences("sp_manga", Context.MODE_PRIVATE) - } - fun launch(mangaId: String) { val manga: MangaResponse? = getDataFromCache(mangaId) if (manga != null) { view.showDetail(manga) |