Repository navigation
Conversation
A close spring tuned to bounce (Tuning, Developer Mode) undershoots the panel's height below zero as it folds. Measuring with a negative height throws in Constraints.copy, and the composer surface clipped the top of its bar by the undershoot. The height now stops at zero where it's animated and where the panel lays out. Reproduced on the emulator with motion.springs.panelClose.bounce = 0.4 (crash on close on dev, none with the fix; in slow motion the bar's top edge no longer dips below its rest). The new test fails on dev with the same exception. scripts/check.sh passes. Fixes #352
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.
Closing the composer's suggestions list could crash the app when the close spring was tuned to bounce. The list's height dipped below zero as it folded, and laying out at a negative height throws. The same dip also clipped the top of the composer bar by about 22 dp for a moment.
Now the list's height stops at zero, both where it's animated and where the list lays itself out. Nothing visible changes with the shipped springs.
panelClosespring; the shipped springs never undershoot.motion.springs.panelClose.bounceat 0.4: dev crashes with the reported stack on the first close; this branch opens and closes it repeatedly without crashing. In slow motion the bar's top edge no longer dips below where it rests. The new test inComposerAutocompleteTestsfails on dev with the same exception.scripts/check.shpasses.Fixes #352