From 166fb9a8e451713ab165d1f170dc9f6f42492b31 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 29 Nov 2017 10:05:33 +0100 Subject: [PATCH] Resubscribe to library when a change of type enter occurs. Resolves #1093 --- .../eu/kanade/tachiyomi/ui/library/LibraryController.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 99c4fa897..fce944223 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -167,14 +167,10 @@ class LibraryController( super.onChangeStarted(handler, type) if (type.isEnter) { activity?.tabs?.setupWithViewPager(view?.view_pager) + presenter.subscribeLibrary() } } - override fun onAttach(view: View) { - super.onAttach(view) - presenter.subscribeLibrary() - } - override fun onDestroyView(view: View) { super.onDestroyView(view) adapter = null