Skip to content

Commit

Permalink
Perform readability parse operation in background thread
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Mar 17, 2024
1 parent 85dd12f commit 5d3362e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ReaderPresenter(

private suspend fun extractArticleHtmlContent(postLink: String, content: String): String {
val article =
withContext(dispatchersProvider.io) { Readability(postLink, content) }.parse()
withContext(dispatchersProvider.io) { Readability(postLink, content).parse() }
?: return content
val articleContent = article.content

Expand Down

0 comments on commit 5d3362e

Please sign in to comment.