diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsPresenter.kt index 621806e4d..c5693e036 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsPresenter.kt @@ -10,6 +10,7 @@ import eu.kanade.tachiyomi.extension.ExtensionManager import eu.kanade.tachiyomi.source.Source import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter import eu.kanade.tachiyomi.util.lang.launchIO +import eu.kanade.tachiyomi.util.lang.launchUI import eu.kanade.tachiyomi.util.system.LocaleHelper import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.flow.collectLatest @@ -70,7 +71,9 @@ class ExtensionDetailsPresenter( .map { } .take(1) .collectLatest { - view?.onExtensionUninstalled() + launchUI { + view?.onExtensionUninstalled() + } } } } 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 19e521e8e..0482f3a08 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 @@ -74,6 +74,11 @@ class LibraryController( val activity = (activity as? MainActivity) ?: return@LaunchedEffect activity.showBottomNav(presenter.selectionMode.not()) } + LaunchedEffect(presenter.isLoading) { + if (presenter.isLoading.not()) { + (activity as? MainActivity)?.ready = true + } + } } override fun handleBack(): Boolean {