Created
March 27, 2020 16:51
-
-
Save ifucolo/795c1e7de684da53ab8c404c2fda9950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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