waqas
02/26/2018, 11:20 PMrepoViewModel.observableRepos.observe(this, Observer<List<RepoItem>> {
it?.let { repos ->
progressBar.visibility = View.GONE
repoAdapter.updateData(repos)
}
})
With android arch components why LiveData value is of nullable type? My guess is because of generic type T in android.arch.lifecycle.LiveData<T>
, or am i missing something?