Skip to content

Commit

Permalink
Fix getting error cause
Browse files Browse the repository at this point in the history
Fix error dialog not shown when getting elemets from first subscription failed.
  • Loading branch information
TobiGr committed Apr 2, 2021
1 parent 0b22d64 commit 43451ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
handleItemsErrors(loadedState.itemsErrors)
}
Expand Down Expand Up @@ -302,7 +304,7 @@ class FeedFragment : BaseListFragment<FeedState, Unit>() {
subscriptionEntity ->
handleFeedNotAvailable(
subscriptionEntity,
t.cause?.cause,
t.cause,
errors.subList(i + 1, errors.size)
)
},
Expand Down

0 comments on commit 43451ca

Please sign in to comment.