diff --git a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt
index 47bfffa7..13c6fc8f 100644
--- a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt
+++ b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt
@@ -424,8 +424,14 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
override fun onCreate(savedInstanceState: Bundle?) {
app.initClient(this)
+ val settingsManager = PreferenceManager.getDefaultSharedPreferences(this)
+
+ if (settingsManager.getBoolean(getString(R.string.auto_update_plugins_key), true)) {
+ PluginManager.updateAllOnlinePluginsAndLoadThem(this)
+ } else {
+ PluginManager.loadAllOnlinePlugins(this)
+ }
- PluginManager.updateAllOnlinePluginsAndLoadThem(this)
PluginManager.loadAllLocalPlugins(this)
// ioSafe {
@@ -455,7 +461,6 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
SearchResultBuilder.updateCache(this)
- val settingsManager = PreferenceManager.getDefaultSharedPreferences(this)
initAll()
apis = allProviders
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a61a476b..ad6a078d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -5,6 +5,7 @@
app_locale
search_type_list
auto_update
+ auto_update_plugins
skip_update_key
prerelease_update
manual_check_update
@@ -260,6 +261,7 @@
Show trailers
Show posters from kitsu
+ Automatic plugin updates
Show app updates
Automatically search for new updates on start
Update to prereleases
diff --git a/app/src/main/res/xml/settings_updates.xml b/app/src/main/res/xml/settings_updates.xml
index 6db33474..39fc92d4 100644
--- a/app/src/main/res/xml/settings_updates.xml
+++ b/app/src/main/res/xml/settings_updates.xml
@@ -28,6 +28,11 @@
android:summaryOff="@string/bug_report_settings_off"
android:summaryOn="@string/bug_report_settings_on"
android:title="@string/pref_disable_acra" />
+
+ android:title="Redo setup process"
+ app:key="@string/redo_setup_key" />
\ No newline at end of file