Update favIconHandler's context on RssItemViewHolder bind #1405
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.
On changing the theme the context the favIconHandler is holding seems to become invalid. You can see the resulting issue here:
Screen_recording_20240329_120130.mp4
This was recorded on a virtual android device (pixel 4 API 33) and coud also be reproduced on my physical pixel 7a running android 14.
I'm sadly not much of an android dev, so I'm not sure if this is the best solution but it does fix the issue. What I could tell is that the request glide (which also holds a reference to this context) is making is neither successful nor fails so it just leaves the placeholder in place (I added RequestListeners and neither
onLoadFailed
noronResourceReady
ever gets called in these cases).I also wonder if this issue has a similar root cause, but I haven't been able to reliably reproduce it.