From 32387cd034842528c73a987b18b9d9215442e564 Mon Sep 17 00:00:00 2001 From: inorichi Date: Sat, 24 Feb 2018 15:38:19 +0100 Subject: [PATCH] Update available extesions whenever the screen is opened --- .../java/eu/kanade/tachiyomi/extension/ExtensionManager.kt | 3 --- .../eu/kanade/tachiyomi/ui/extension/ExtensionPresenter.kt | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt index b2918a972..e2502cbc7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionManager.kt @@ -132,9 +132,6 @@ class ExtensionManager( * Returns the relay of the available extensions as an observable. */ fun getAvailableExtensionsObservable(): Observable> { - if (!availableExtensionsRelay.hasValue()) { - findAvailableExtensions() - } return availableExtensionsRelay.asObservable() } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionPresenter.kt index 54edce30f..95faaece2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionPresenter.kt @@ -29,6 +29,7 @@ open class ExtensionPresenter( override fun onCreate(savedState: Bundle?) { super.onCreate(savedState) + extensionManager.findAvailableExtensions() bindToExtensionsObservable() }