Skip to content

fix: stability pass for weather, keep-alive, screen time and widget updates - #105

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/stability
Nov 20, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/stability

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Fixes

  • Weather never reached the widget: the Gadgetbridge broadcast from Breezy Weather is now stored before rendering. Covered by WeatherBroadcastTest.
  • Keep-alive on Android 14+: the health foreground service type needs Physical activity; without it the service failed with a SecurityException. The toggle (settings and setup) now requests it and reverts with a localized message if denied.
  • Screen time overcount: daily usage buckets are not aligned to local midnight. Now counted from usage events since midnight, excluding the default launcher, with an incremental cache so per-minute ticks stay cheap. Covered by ScreenTimeTrackerTest. Adds a HOME intent <queries> entry (no permission) to identify third-party launchers.
  • Partial updates skip the weather JSON parse.
  • "No Title" and "0m" are localized; check_strings.py now inspects cursor.getString(...) lines.
  • Removed dead manifest actions and the widget id lookup for unhandled broadcasts.

Verification

  • check_strings.py, unit tests, lintDebug, assembleRelease pass.
  • Device (API 37): keep-alive allow/deny paths, weather broadcast, tick updates, screen time cache.

…pdates

- Store Breezy weather from the Gadgetbridge broadcast before rendering;
  weather previously never reached the widget
- Keep-alive on Android 14+: request Physical activity (required by the
  health FGS type) and revert the switch with a message if denied,
  instead of failing silently with a SecurityException
- Screen time: count exact foreground intervals since local midnight from
  usage events, excluding the launcher; incremental and cached per tick
- Skip the weather JSON parse on partial widget updates
- Localize "No Title" and "0m"; check_strings.py now checks cursor reads
- Remove dead manifest actions (internal, CONFIGURATION_CHANGED,
  LOCKED_BOOT_COMPLETED) and look up widget ids only when handled
@LeanBitLab
LeanBitLab merged commit effaf68 into main Nov 20, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/stability branch November 20, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant