-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
questionFurther information is requestedFurther information is requested
Description
is there something wrong with the following script? because the original data does not appear
private fun getData() {
newsViewModel.getNewsList().observe(viewLifecycleOwner) {
when (it) {
is Response.Loading -> skeleton?.showSkeleton()
is Response.Success -> {
skeleton?.showOriginal()
newsAdapter.add(it.data)
}
is Response.Fail -> {
it.e.message.toString().snackBarErrorMessage(activity as MainActivity)
skeleton?.showSkeleton()
}
}
}
}
bhavikmehta5491, shamshadpattani and Oussemahlel
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested