Fix more info crash

This commit is contained in:
Jobobby04
2021-09-17 15:40:39 -04:00
parent 3b0523268a
commit 7ffe1794d9
4 changed files with 20 additions and 41 deletions
@@ -480,7 +480,6 @@ class MangaController :
override fun onDestroyView(view: View) {
destroyActionModeIfNeeded()
binding.actionToolbar.destroy()
mangaInfoAdapter?.onDestroyView()
mangaInfoAdapter = null
chaptersHeaderAdapter = null
chaptersAdapter = null
@@ -568,11 +568,4 @@ class MangaInfoHeaderAdapter(
}
}
}
fun onDestroyView() {
metaInfoAdapter = null
mangaTagsInfoAdapter = null
binding.metadataView.adapter = null
binding.genreGroups.adapter = null
}
}