fixed build
This commit is contained in:
parent
b7a6709e24
commit
7e26d604de
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue