Start monitoring connectivity status when the repository is initiated.

This commit is contained in:
davidoskky 2022-10-01 22:43:48 +02:00
parent 713ceb05bf
commit ebef0b3511
2 changed files with 1 additions and 2 deletions
androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android
shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository

@ -75,8 +75,6 @@ class MyApp : MultiDexApplication(), DIAware {
).show()
}
}
connectivityStatus.start()
}
private fun handleNotificationChannels() {

@ -42,6 +42,7 @@ 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)