Repository navigation
Load the history tiles with a theme, so they render at all - #85
Merged
Merged
Conversation
The timeline column went blank. HistoryItemsAdapter loaded its tiles with ResourcesCompat.getDrawable(resources, id, null) - a null theme - which was fine while those vectors were filled with @color/md_theme_* literals. Converting them to ?attr/colorOutline so they follow wallpaper colours left nothing to resolve the attribute against, so the paths drew as nothing. No exception, no failing test, no log. The tiles were simply not there. The Resources this adapter is given carry no theme, so the row's own context supplies one. My screenshot test did not catch it and could not have: it loads the same drawables through a themed context, which proves the drawable can render rather than that the app asks for it correctly. ThemedDrawableLoadingTest checks the call instead - a source scan, because the defect is in how the call is written and there is no object left to inspect. The map markers legitimately load without a theme, since setTint overwrites every fill immediately afterwards. They are marked at the call site rather than excluded silently: that safety depends on a line further down, which is worth writing where somebody will read it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
wanderdev0
temporarily deployed
to
Android Build
August 16, 2026 08:23 — with
GitHub Actions
Inactive
wanderdev0
temporarily deployed
to
Android Build
August 16, 2026 08:23 — with
GitHub Actions
Inactive
saamdotexe
pushed a commit
to saamdotexe/OpenTagViewer
that referenced
this pull request
Oct 22, 2026
…need-a-theme Load the history tiles with a theme, so they render at all
This branch was previously deployed
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.
The history timeline column renders nothing. A regression from the dynamic-colour change, on
mainnow.What happened
HistoryItemsAdapterloaded its tiles like this:That third argument is the theme. It had been fine while the tiles were filled with
@color/md_theme_*literals — a literal colour needs no theme. Converting them to?attr/colorOutline, so they would follow wallpaper colours, left nothing to resolve theattribute against, and the paths drew as nothing.
No exception, no failing test, no log line. The tiles were simply absent.
The
Resourcesthis adapter is handed carry no theme, so the fix takes the row's own context —AppCompatResources.getDrawable(viewHolder.itemView.getContext(), id).Why the existing test missed it
SystemColorsLayoutTestrenders those same drawables and asserts they clear 3:1 against thebackground. It passes, and it passed throughout the outage — because it loads them through a
themed context. That proves the drawable can render, which is not the same claim as the app
asking for it correctly. Wrong assertion boundary.
ThemedDrawableLoadingTestchecks the call site instead. A source scan, because the defect is inhow the call is written and there is no object left to inspect afterwards. It runs on the JVM in
milliseconds.
The one legitimate exception
The map markers in
VectorImageGeneratorUtilalso load without a theme, and are fine: theysetTintevery fill immediately afterwards, so nothing the theme would have supplied ever shows.They are marked
TINTED_AFTERWARDSat each call site rather than excluded silently — that safetydepends on a line four below the load, which is worth writing down where somebody will read it.
The marker must sit on the call or the line above, so it cannot be dropped at the top of a file
to silence everything beneath.
Scope
52 drawables now use
?attr/. Only the history tiles were affected; everything else eitherinflates from a layout (themed) or is explicitly tinted.
🤖 Generated with Claude Code
This pull request description was written by Claude Code.