Repository navigation
Conversation
…gative The capsule's height is its place's height minus 5dp top and bottom. A place under 10dp tall made it negative, and the next layout threw IllegalArgumentException from Constraints.fixed. That happens when a short window squeezes the composer's pill row, or when a clip cuts the place. The height now stops at zero. Fixes #334
The fix is a one-line clamp; the Robolectric test isn't needed.
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 app crashed for some users with an IllegalArgumentException while drawing a session that had background work (a subagent or shell running). Play reports it on version 1035, on API 37 OnePlus phones.
The capsule's height is its place's height minus 5dp top and bottom. A place under 10dp tall made that negative, and
Constraints.fixedthrew in the next layout. The place gets that short when the composer has almost no height left, for example in a split screen or a small window with the keyboard up, or when a clip above it cuts it.Now the capsule's height stops at zero. At normal sizes nothing changes, so there is no media.
Constraints.fixedcall, measured from a draw pass. It is not the RectManager crash from Crash: IllegalArgumentException in InlineClassHelperKt.throwIllegalArgumentException #242.Fixes #334