Update dependencies & application version.
This commit is contained in:
parent
4f3fabc4d6
commit
52cfe78b6e
4 changed files with 20 additions and 21 deletions
|
|
@ -77,7 +77,8 @@ class BottomDetailStateController constructor(
|
|||
scope.launch {
|
||||
when (val book = viewModel.getDetail(id)) {
|
||||
is StateUio.Failure -> {
|
||||
context.showToast(message = context.getString(R.string.error_generic))
|
||||
val mes = book.exception.message ?: context.getString(R.string.error_generic)
|
||||
context.showToast(message = mes)
|
||||
}
|
||||
is StateUio.Success -> {
|
||||
bookDetail.value = book.value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue