From 70becf72e07420ca4a786e4f7b0b9f0d7be95489 Mon Sep 17 00:00:00 2001 From: Jace <54625750+Jacekun@users.noreply.github.com> Date: Tue, 1 Nov 2022 10:03:05 +0800 Subject: [PATCH] Pattern code following recent change on updateAllOnlinePluginsAndLoadThem() --- .../lagradost/cloudstream3/plugins/PluginManager.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt b/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt index ff180e01..c45228fb 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/plugins/PluginManager.kt @@ -223,7 +223,7 @@ object PluginManager { // Load all plugins as fast as possible! loadAllOnlinePlugins(activity) - afterPluginsLoadedEvent.invoke(true) + afterPluginsLoadedEvent.invoke(true) val urls = (getKey>(REPOSITORIES_KEY) @@ -288,9 +288,7 @@ object PluginManager { // Load all plugins as fast as possible! loadAllOnlinePlugins(activity) - ioSafe { - afterPluginsLoadedEvent.invoke(true) - } + afterPluginsLoadedEvent.invoke(true) val newDownloadPlugins = mutableListOf() val urls = (getKey>(REPOSITORIES_KEY) @@ -358,9 +356,9 @@ object PluginManager { createNotification(activity, newDownloadPlugins, R.string.plugins_downloaded) } - // ioSafe { + ioSafe { afterPluginsLoadedEvent.invoke(true) - // } + } Log.i(TAG, "Plugin download done!") }