mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update MainActivity.kt
This commit is contained in:
parent
bfb3313137
commit
250b61c517
1 changed files with 4 additions and 7 deletions
|
@ -798,13 +798,10 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
|
||||||
loadAllOnlinePlugins(this@MainActivity)
|
loadAllOnlinePlugins(this@MainActivity)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Automatically download not existing plugins
|
//Automatically download not existing plugins, using mode specified.
|
||||||
if (settingsManager.getBoolean(
|
val auto_download_plugin = AutoDownloadMode.getEnum(settingsManager.getInt(getString(R.string.auto_download_plugins_key), 0)) ?: AutoDownloadMode.Disable
|
||||||
getString(R.string.auto_download_plugins_key),
|
if (auto_download_plugin != AutoDownloadMode.Disable) {
|
||||||
false
|
PluginManager.downloadNotExistingPluginsAndLoad(this@MainActivity, auto_download_plugin)
|
||||||
)
|
|
||||||
) {
|
|
||||||
PluginManager.downloadNotExistingPluginsAndLoad(this@MainActivity)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue