mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Improve disconnect display
This commit is contained in:
parent
dce7cbc450
commit
5d0f838424
1 changed files with 3 additions and 0 deletions
|
|
@ -94,6 +94,9 @@ class ApiClient @Inject constructor(
|
|||
cacheControl.maxAge(1, TimeUnit.DAYS)
|
||||
}
|
||||
} else {
|
||||
if (!hasNetwork(context)) {
|
||||
appStateManager.isAppConnected.value = false
|
||||
}
|
||||
cacheControl.noCache()
|
||||
.noStore()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue