mirror of
https://github.com/Matte23/circolapp.git
synced 2026-10-15 23:45:16 +00:00
Fixed loading indicator state not update when network is not available
This commit is contained in:
1 parent
83ff2b9bc8
commit
6d23ff7ee8
1 file changed
+1
-1
@@ -60,11 +60,11 @@ class CircularLetterViewModel(application: Application) : AndroidViewModel(appli
|
|||||||
AppDatabase.getInstance(getApplication()).circularDao()
|
AppDatabase.getInstance(getApplication()).circularDao()
|
||||||
.insertAll(newCirculars)
|
.insertAll(newCirculars)
|
||||||
}
|
}
|
||||||
circularsUpdated.postValue(true)
|
|
||||||
} catch (exception: IOException) {
|
} catch (exception: IOException) {
|
||||||
showMessage.postValue(true)
|
showMessage.postValue(true)
|
||||||
} finally {
|
} finally {
|
||||||
isNotUpdating = true
|
isNotUpdating = true
|
||||||
|
circularsUpdated.postValue(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.start()
|
}.start()
|
||||||
|
|||||||
Reference in new issue
Block a user