Skip to content

GlucoDroid v0.2.4.2-alpha

Pre-release
Pre-release

Choose a tag to compare

@robster7674 robster7674 released this 04 Jun 15:12

Patch fix for v0.2.4.1

fix(tts): settings-save was resetting the speech rate limiter

applyComposeSettings() and the legacy dialog save handler both unconditionally executed:

nexttime = System.currentTimeMillis() + cursep;

on every save — including every slider tick in the voice settings screen and every app-resume that reloads settings. This opened a full separation-period blackout (up to 10 min with a 600 s setting) on the rate limiter each time.

Trace evidence: 71 glucose notifications, only 7 spoken; first speak at T+607 s despite nexttime=0 at init — a settings reload on app resume had already set nexttime = T_resume + 600 s before the first glucose arrived.

Fix: remove the nexttime assignment from both save paths. cursep is still updated (so the new interval applies immediately); nexttime now only advances inside selspeak() after a reading is actually spoken, which is the correct behaviour.