-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I have an issue with this library:
I call an external API via Coroutines and fetch the data. When I receive the data I want to hide the skeletons but it doesn't work. My code below:
CoroutineScope(Dispatchers.IO).launch {
val response =
service.fetchResults(finalUrl)
withContext(Dispatchers.Main) {
try {
if (response.isSuccessful) {
textViewTitle.hideSkeleton()
}
} catch (e: HttpException) {
Log.d("TAG", "error ")
} catch (e: Throwable) {
Log.d("TAG", "error" + e)
}
}
}
}
Any ideas?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels