network #28
@ -1017,7 +1017,6 @@ 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()
|
||||
AmineB marked this conversation as resolved
Outdated
|
||||
if (updatedRemote) {
|
||||
// TODO: Send toast messages from the repository
|
||||
|
Loading…
Reference in New Issue
Block a user
repository.offlineOverride should only refreshed on app reload or swipe to refresh.
It shouldn't be overridden here.