From f53cf63ab1edcd0126d9c5faaea02b303dac3c84 Mon Sep 17 00:00:00 2001 From: nonproto <2092019+nonproto@users.noreply.github.com> Date: Tue, 30 Apr 2024 10:40:40 -0400 Subject: [PATCH] Don't reset the page on browse if we got an error --- .../eu/kanade/tachiyomi/ui/source/browse/BrowsePresenter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowsePresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowsePresenter.kt index 0198bfd979..bac52d01cc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowsePresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowsePresenter.kt @@ -277,8 +277,9 @@ class BrowsePresenter( fun retry() { presenterScope.launchIO { + val initialLoading = _browseScreenState.value.page == 1 _browseScreenState.update { state -> - state.copy(initialLoading = true, error = null, page = 1) + state.copy(initialLoading = initialLoading, error = null) } when (browseScreenState.value.screenType) { BrowseScreenType.Homepage -> getHomepage()