Skip to content

Commit

Permalink
add hideProgress() to onStop in torrserver settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed May 3, 2024
1 parent 9ce1056 commit b10aa50
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b10aa50

Please sign in to comment.