Skip to content

Commit

Permalink
fix: clean headless tts webview after loading text
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Sep 21, 2024
1 parent 5709efd commit 5edd2c5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,8 @@ open class BrowserActivity : FragmentActivity(), BrowserController {
ttsViewModel.readArticle(headlessWebView.getRawText())
if (toBeReadProcessUrlList.isNotEmpty()) {
headlessWebView.loadUrl(toBeReadProcessUrlList.removeAt(0))
} else {
headlessWebView.loadUrl("about:blank")
}
}
}
Expand Down

0 comments on commit 5edd2c5

Please sign in to comment.