Skip to content

Commit

Permalink
fix: crush bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Aug 28, 2023
1 parent 60d4456 commit 442ab8c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ class TimelineViewModel @AssistedInject constructor(
timelineStore.suspendStreaming()
}
viewModelScope.launch {
timelineStore.releaseUnusedPages(firstVisiblePosition)
try {
timelineStore.releaseUnusedPages(firstVisiblePosition)
} catch (e: IllegalArgumentException) {
logger.log("release unused pages failed")
logger.error("release unused pages failed", e)
}
}
saveScrollPositionScrolledEvent.tryEmit(firstVisiblePosition)
}
Expand Down

0 comments on commit 442ab8c

Please sign in to comment.