Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SnackBar] Fix margins are added multiple times when show() is called
When a snack bar is hidden and its show() method is called, it will be added to the target parent, and at this moment the parent view will set the layout params to the snack bar, with the same existing margins if any. Therefore if the margins are already updated with extra margins, the original margins will be incorrectly updated. This CL introduces a flag to tells this situation from other "real" scenarios in which clients want to update their custom margins. Resolves #2666 PiperOrigin-RevId: 445159923 (cherry picked from commit 46fa8cc)
- Loading branch information