Repository navigation
Keep earlier filters when a blur in the filter list is too small to draw - #60345
Merged
intergalacticspacehighway merged 2 commits intoNov 29, 2026
Merged
intergalacticspacehighway merged 2 commits into
intergalacticspacehighway merged 2 commits into
Conversation
Visual regressionNo visual differences at ios: no capture |
intergalacticspacehighway
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, the fix looks correct. Can you also add a Robolectric test that checks parseFilters doesn't return null for that input?
Contributor
Author
|
Added it in 8d32d6a, it checks that grayscale followed by a 0 blur still gives a non-null effect. I don't have an Android SDK set up here, so I'm counting on CI to run it. |
intergalacticspacehighway
approved these changes
Nov 29, 2026
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.
Summary:
On Android 12+,
FilterHelper.createBlurEffectreturnsnullfor a blur sigma of 0.5 or less, andparseFiltersstores that result as the wholeRenderEffectchain. So[{grayscale: 1}, {blur: 0}]draws the view unfiltered, and[{invert: 1}, {blur: 0.5}, {sepia: 1}]draws it with only the sepia. A blur that draws nothing should leave the image as it is, so it now returns the incoming chain instead of dropping it.Fixes #60341
Changelog:
[ANDROID] [FIXED] - Fix a
blurof 0.5 or less in afilterlist dropping every filter before itTest Plan:
Traced
parseFilterswith[{grayscale: 1}, {blur: 0}]: before the change the chain ends upnullafter the blur step, now it stays as the grayscale effect. Matches the reproducer in the issue. No Android SDK on this machine, so I relied on CI for the build.