v0.1.0-alpha.18 — fix NFC tap activation, correct screen-time totals, per-day drill-down - #19
Merged
Merged
Conversation
…nt stream, per-day drill-down Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. NFC tap wasn't activating Brick modes
Two real bugs, both fixed:
NDEF_DISCOVERED(with a custom MIME a blank tag never carries) andTECH_DISCOVERED. Plain tags that fall through toTAG_DISCOVEREDmatched no filter at all, so nothing launched outside the app. That filter is now declared.2. Screen Time reported ~191h/day
Root cause:
queryAndAggregateUsageStatsreturns each app's total for whatever interval bucket Android picked internally (often weekly/monthly) — querying it once per day handed back the same bloated total for all seven days, which is exactly the identical-bar bug reported. Rewritten to walk the rawUsageEventsstream and sumACTIVITY_RESUMED → PAUSED/STOPPEDpairs per app, with screen-off and end-of-day closing any still-open session. Existing bad rows are wiped and rebuilt once automatically on first launch of this version.3. Per-day drill-down
Tapping a bar in the weekly chart opens a sheet with that day's total screen time, unlock count, and its own app ranking.
Debug + minified release builds pass; all Brick policy unit tests pass. versionCode 18.
🤖 Generated with Claude Code
Generated by Claude Code