fixed build

This commit is contained in:
Xinto 2020-09-16 14:52:12 +04:00
parent b7a6709e24
commit 7e26d604de
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ open class HomeViewModel(application: Application): AndroidViewModel(application
val navigateDestination : LiveData<Event<Int>> = _navigateDestination
fun fetchData(firstInit: Boolean = false) {
fun fetchData(firstInit: Boolean) {
CoroutineScope(Dispatchers.IO).launch {
fetching.set(true)
if (!firstInit) managerApp.loadJson()

View File

@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
bind:refreshing="@{viewModel.fetching}"
bind:onRefreshListener="@{()-> viewModel.fetchData()}">
bind:onRefreshListener="@{()-> viewModel.fetchData(false)}">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"