From 1c8da5fa974b4cfd0fd762b0b1c2a07622ac7662 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Mon, 25 Jul 2022 19:32:11 +0700 Subject: [PATCH] BrowseSourceController: Fix broken page after opening manga (#7608) Probably related to 788583e66f6ad355f65f5bd2db303faa85163c5c --- .../tachiyomi/ui/browse/source/browse/BrowseSourceController.kt | 2 ++ .../tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt index 590f03deae..6fb20a05eb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt @@ -141,6 +141,8 @@ open class BrowseSourceController(bundle: Bundle) : setupRecycler(view) binding.progress.isVisible = true + + presenter.restartPager() } open fun initFilterSheet() { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt index d96cca0ae3..9052bb02d3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt @@ -132,8 +132,6 @@ open class BrowseSourcePresenter( if (savedState != null) { query = savedState.getString(::query.name, "") } - - restartPager() } override fun onSave(state: Bundle) {