Do not change the network override from within the repository

This commit is contained in:
davidoskky committed 2022-08-20 12:44:20 +02:00
1 parent 3a2fab8e68
commit e60ed92c6d
2 files changed
+1 -1

No files matched your search

@@ -1024,6 +1024,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
Toast.makeText(this, R.string.refresh_in_progress, Toast.LENGTH_SHORT).show()
// TODO: Use Dispatchers.IO
CoroutineScope(Dispatchers.Main).launch {
repository.offlineOverride = false
val updatedRemote = repository.updateRemote()
if (updatedRemote) {
// TODO: Send toast messages from the repository