Enhance naming

This commit is contained in:
ariskotsomitopoulos 2022-03-31 14:07:49 +03:00
parent 0d59a31788
commit f8a909b014

View file

@ -113,15 +113,15 @@ class ThreadListViewModel @AssistedInject constructor(@Assisted val initialState
private fun fetchThreadList() {
viewModelScope.launch {
isLoading(true)
setLoading(true)
room?.fetchThreadSummaries()
isLoading(false)
setLoading(false)
}
}
private fun isLoading(show: Boolean) {
private fun setLoading(isLoading: Boolean) {
setState {
copy(isLoading = show)
copy(isLoading = isLoading)
}
}