Skip to content

Wear sync status can get stuck in SYNCING on malformed payload #158

@ScottMorris

Description

@ScottMorris

Summary

The Wear OS app can remain in SYNCING when a data item arrives without alarmsJson.

Current behaviour

  • Listener sets SYNCING before payload extraction.
  • If alarmsJson is null, control flow continues without resetting status.

Expected behaviour

Status should always transition back to CONNECTED (or OFFLINE) after each event path, including malformed payloads.

Impact

  • Sync indicator may remain stuck on Syncing….
  • Misleading UI state and harder troubleshooting.

Evidence

  • apps/threshold-wear/src/main/java/ca/liminalhq/threshold/wear/service/DataLayerListenerService.kt:49
  • apps/threshold-wear/src/main/java/ca/liminalhq/threshold/wear/service/DataLayerListenerService.kt:52

Suggested fix

Ensure status reset happens in all branches (e.g., try/finally around per-event processing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidAndroid toolchain and mobile CI concernsbugSomething isn't workinguiUser interfacewear-osWear OS platform

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions