Compare commits
1
Commits
v122102881
...
c25e8889a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c25e8889a4 |
+6
-4
@@ -43,10 +43,11 @@ class Repository(private val api: SelfossApi, private val appSettingsService: Ap
|
||||
init {
|
||||
// TODO: Dispatchers.IO not available in KMM, an alternative solution should be found
|
||||
connectivityStatus.start()
|
||||
runBlocking {
|
||||
updateApiVersion()
|
||||
dateUtils = DateUtils(appSettingsService)
|
||||
reloadBadges()
|
||||
if (appSettingsService.getBaseUrl() != "") {
|
||||
runBlocking {
|
||||
updateApiVersion()
|
||||
reloadBadges()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -408,6 +409,7 @@ class Repository(private val api: SelfossApi, private val appSettingsService: Ap
|
||||
appSettingsService.updateApiVersion(fetchedVersion.data.getApiMajorVersion())
|
||||
}
|
||||
}
|
||||
dateUtils = DateUtils(appSettingsService)
|
||||
}
|
||||
|
||||
fun isNetworkAvailable() = isConnectionAvailable.value && !offlineOverride
|
||||
|
||||
Reference in New Issue
Block a user