Fix getting error cause
Fix error dialog not shown when getting elemets from first subscription failed.
This commit is contained in:
parent
89317d4abc
commit
b57ecae565
1 changed files with 4 additions and 2 deletions
|
@ -264,7 +264,9 @@ class FeedFragment : BaseListFragment<FeedState, Unit>() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldestSubscriptionUpdate != loadedState.oldestUpdate) {
|
if (oldestSubscriptionUpdate != loadedState.oldestUpdate ||
|
||||||
|
(oldestSubscriptionUpdate == null && loadedState.oldestUpdate == null)
|
||||||
|
) {
|
||||||
// ignore errors if they have already been handled for the current update
|
// ignore errors if they have already been handled for the current update
|
||||||
handleItemsErrors(loadedState.itemsErrors)
|
handleItemsErrors(loadedState.itemsErrors)
|
||||||
}
|
}
|
||||||
|
@ -302,7 +304,7 @@ class FeedFragment : BaseListFragment<FeedState, Unit>() {
|
||||||
subscriptionEntity ->
|
subscriptionEntity ->
|
||||||
handleFeedNotAvailable(
|
handleFeedNotAvailable(
|
||||||
subscriptionEntity,
|
subscriptionEntity,
|
||||||
t.cause?.cause,
|
t.cause,
|
||||||
errors.subList(i + 1, errors.size)
|
errors.subList(i + 1, errors.size)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue