diff --git a/app/src/main/java/foundation/e/apps/settings/SettingsFragment.kt b/app/src/main/java/foundation/e/apps/settings/SettingsFragment.kt index b6e5da083e770945a5822e25669d6806dc8368fc..f6ed13a0727cff9777408c8030f8a1a3b8456fd0 100644 --- a/app/src/main/java/foundation/e/apps/settings/SettingsFragment.kt +++ b/app/src/main/java/foundation/e/apps/settings/SettingsFragment.kt @@ -39,6 +39,7 @@ import foundation.e.apps.BuildConfig import foundation.e.apps.MainActivity import foundation.e.apps.MainActivityViewModel import foundation.e.apps.R +import foundation.e.apps.api.fused.UpdatesDao import foundation.e.apps.databinding.CustomPreferenceBinding import foundation.e.apps.login.LoginViewModel import foundation.e.apps.updates.manager.UpdatesWorkManager @@ -239,6 +240,7 @@ class SettingsFragment : PreferenceFragmentCompat() { override fun onDestroyView() { if (sourcesChangedFlag) { + UpdatesDao.addItemsForUpdate(emptyList()) loginViewModel.startLoginFlow() } super.onDestroyView()