Tasks
Android – osmandapp/OsmAnd#24635
1. Icon Updates
Update the widget icons when sensors are disconnected:
2. Drop Sensor Values to "0" On Stop
Fix the issue where external sensor widgets continuously show the last cached value after a stop.
- Goal: Reset values to
0 when movement stops, rather than holding the last active state.
- Logic & Optimization: * Do not rely on calculated speed/cadence values remaining identical for 10 seconds (to prevent false "0" drops during steady cruise or indoor riding).
- Check the raw payload data instead: monitor Last Wheel Event Time (and Cumulative Revolutions) from sensor broadcasts.
- If the Last Wheel Event Time remains identical for 3–4 seconds, treat the wheel/crank as stopped and drop the widget value to
0.
Tasks
1. Icon Updates
Update the widget icons when sensors are disconnected:
widget_sensor_bicycle_power_disconnectedwidget_sensor_cadence_disconnectedwidget_sensor_distance_disconnectedwidget_sensor_heart_rate_disconnectedwidget_sensor_speed_disconnectedwidget_sensor_temperature_disconnected2. Drop Sensor Values to "0" On Stop
Fix the issue where external sensor widgets continuously show the last cached value after a stop.
0when movement stops, rather than holding the last active state.0.