Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Created March 27, 2020 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifucolo/795c1e7de684da53ab8c404c2fda9950 to your computer and use it in GitHub Desktop.
Save ifucolo/795c1e7de684da53ab8c404c2fda9950 to your computer and use it in GitHub Desktop.
private fun showError() {
binding.btnTryAgain.show()
}
private fun showEmptyState() {
binding.txtEmpty.show()
}
private fun showContent(list: List<AndroidJob>) = with(androidJobsAdapter) {
jobs = list
notifyDataSetChanged()
binding.recyclerView.show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment