Block a user
52 contributions in the last 12 months
Less
More
Refactor TTS module and restructure package hierarchy
refactoring/simplify-mainviewmodel
refactoring/simplify-mainviewmodel
fix-tts-foreground
pendingStartSentenceIndex
is also a mutable property that lives outside this function. Best to also take a snapshot of it rather than using it directly inside the coroutine. This will help avoid nasty race conditions when working with such mutable state.
fix-tts-foreground
Your coroutine will silently fail if anything in SentenceParser.parse() or the playback process throws.
fix-tts-foreground
In my opinion, committing commented-out code is a code smell, unless there’s a truly compelling reason—though in my experience, those are rare.
Refactor MainScreen and dependency injection modules