First of all, thank you for Elements - while I'm just starting to evaluate it, it looks quite nice and I hope to be able to contribute some features in the future.
val adapter = Adapter.builder(this)
.addSource(Source.fromLiveData(viewModel.conversationsLiveData))
.addPresenter(ConversationsPresenter(context, ::onElementClick))
.addPresenter(Presenter.forLoadingIndicator(context, R.layout.loading_state))
.addPresenter(Presenter.forEmptyIndicator(context, R.layout.message_state))
.addPresenter(Presenter.forErrorIndicator(context, R.layout.message_state) { view, throwable ->
view.messageStateTextView.setText(R.string.nc_oops)
view.messageStateImageView.setImageDrawable(context.getDrawable(drawable.ic_announcement_white_24dp))
})
.into(view.recyclerView)
This is the code I have. Unfortunately neither the loading nor the empty states (when live data is empty) ever appear (even though they should). Any ideas?