diff --git a/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/servsets/ServerSettingsFragment.kt b/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/servsets/ServerSettingsFragment.kt index f59f0f25..1e30df92 100644 --- a/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/servsets/ServerSettingsFragment.kt +++ b/app/src/main/java/ru/yourok/torrserve/ui/fragments/main/servsets/ServerSettingsFragment.kt @@ -154,6 +154,13 @@ class ServerSettingsFragment : TSFragment() { lifecycleScope.launch { load() } } + override fun onStop() { + lifecycleScope.launch(Dispatchers.Main) { + hideProgress() + } + super.onStop() + } + private suspend fun load() = withContext(Dispatchers.Main) { if (!loaded) { showProgress()