Skip to content

Commit

Permalink
force error state cover content
Browse files Browse the repository at this point in the history
  • Loading branch information
yzzzd committed Sep 22, 2021
1 parent c75158b commit 0babb96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ abstract class NoViewModelActivity<VB : ViewDataBinding> : AppCompatActivity(),
apiResponse.message?.let { msg ->
if (apiResponse.flagView == 1) {
if (stateViewHelper != null) {
stateViewHelper?.showError(msg) {
stateViewHelper?.showError(msg, false) {
onErrorRetryClick()
}
} else {
Expand All @@ -299,7 +299,7 @@ abstract class NoViewModelActivity<VB : ViewDataBinding> : AppCompatActivity(),
apiResponse.message?.let { msg ->
if (apiResponse.flagView == 1) {
if (stateViewHelper != null) {
stateViewHelper?.showError(msg) {
stateViewHelper?.showError(msg, false) {
onErrorRetryClick()
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class StateViewHelper(val stateView: StateView?, @LayoutRes emptyRes: Int = R.la
if (value) {
stateView?.setState(STATE_EMPTY, oc)
} else {
showContent()
showContent(oc = oc)
}
}

Expand Down

0 comments on commit 0babb96

Please sign in to comment.