From 71bd5fe36779ef91f62874020ddf276d4f5caf98 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 6 Jun 2021 22:27:28 -0400 Subject: [PATCH] Fix crash on source page load error --- .../tachiyomi/ui/browse/source/browse/BrowseSourcePresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6f0d338cb..d48b63418 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 @@ -180,7 +180,7 @@ open class BrowseSourcePresenter( try { pager.requestNextPage() } catch (e: Throwable) { - view?.onAddPageError(e) + withUIContext { view?.onAddPageError(e) } } } }