Widget tap-to-expand felt slow (several seconds). Inverts the order in all three click handlers so the widget re-renders BEFORE awaiting the AsyncStorage write — the user sees the change immediately, persistence finishes in the background. - TOGGLE_COMPLETE / TOGGLE_EXPAND / TOGGLE_SUBTASK : render before persist - EXPAND_DEBOUNCE_MS 2000 -> 600 (still blocks accidental double-taps, no longer feels laggy when collapsing right after expanding) - persistState() wraps setWidgetState in try/catch — on failure the next handler call re-reads the prior state from AsyncStorage, UI self-heals - Dev-only timed() helper logs each step to logcat for measurement: adb logcat -s ReactNativeJS | grep '\[widget\]' Out of scope: cold start of the Android headless task service (suspected main contributor to perceived slowness, unfixable from JS). |
||
|---|---|---|
| .. | ||
| components | ||
| db | ||
| i18n | ||
| lib | ||
| services | ||
| shared | ||
| stores | ||
| theme | ||
| widgets | ||
| global.css | ||