-
Notifications
You must be signed in to change notification settings - Fork 2k
Android: constrain oversized image decodes to display bounds to prevent runtime bitmap draw crashes #35606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+495
−27
Closed
Android: constrain oversized image decodes to display bounds to prevent runtime bitmap draw crashes #35606
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
17e8a5e
Initial plan
Copilot 7a6690f
Fix Android large image loading by capping decode size
Copilot d647ccf
Refine oversized image cap guard and test clarity
Copilot 7702c62
Rename oversized image test margin constant for clarity
Copilot fe546f5
Address AI feedback on Android image sizing behavior
Copilot 8a0483e
Address review feedback for #35606
Copilot f129408
Constrain ImageView stream downsampling for #35606
Copilot efbb3c8
Preserve Android resource ImageView fast path for #35606
Copilot bcf3853
Bound Android ImageView stream decodes for #35606
Copilot f93775c
Address image source review coverage for #35606
Copilot a33b70b
Return null instead of throwing on failed Android resource drawable l…
Copilot a36a181
Route Android resource ImageView loads through bounded Glide path (#3…
Copilot 14b21e0
Use target-bounded Android ImageView decode scaling (#35606)
Copilot 6e63183
Preserve Android ImageView sizing in bounded decodes (#35606)
Copilot fe7f429
Cap Android decode bounds consistently across orientations (#35606)
Copilot 424f89d
Restore per-dimension Android display decode caps (#35606)
Copilot ecdab27
Update ImageHandlerTests for Glide-based Android app-resource loading
Copilot db0d955
Match downsample strategy to ImageView ScaleType for CenterCrop
Copilot 54456ba
Extend Android decode-size cap to Aspect.Fill and Aspect.Center
Copilot db059b8
[Android] Observe cancellation after async Glide image load
Copilot 117fdb3
[Android] Propagate image-load cancellation and bound cover/fill deco…
Copilot bf0ade8
[Android] Display-bound the default FitCenter image decode path
Copilot 8b4f94f
[Android] Bound thumbnail decodes to view size and fix canceled-null …
Copilot e6dd195
[Android] Use file:// scheme in URI image-source device tests
Copilot 383217e
Cover-decode AspectFill/Fill via display-bounded fill strategy
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.