conradchen 2bfc7bae07 [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 https://github.com/material-components/material-components-android/issues/2666

PiperOrigin-RevId: 445159923
(cherry picked from commit 46fa8cc45b8bb6d1423f7349986c7f3f4cdc5d4e)
2022-05-04 11:32:07 -04:00
..
2021-11-29 17:35:39 +00:00
2022-03-15 19:18:27 +00:00
…
2022-03-15 19:18:27 +00:00
2021-11-29 17:35:39 +00:00
2022-03-15 19:18:27 +00:00
2022-03-15 19:18:27 +00:00
2021-11-29 17:35:39 +00:00
2022-03-15 19:18:27 +00:00