conradchen 1a91e683a3 [BottomSheet] Fix bottom sheet dialog status bar color adjustment
This CL fixes two issues regarding bottom sheet dialog status color adjustment in edge-to-edge mode:

1. Uses WindowInsetsControllerCompat to set status bar color to replace the deprecated way of setting flags, which cannot override the light/dark setting set by WindowInsetsControllerCompat.
2. Tracks Window change so the original status bar color can be updated when the dialog is re-shown. (The day/night mode can be changed when the dialog is hidden.)

Resolves https://github.com/material-components/material-components-android/issues/2168

PiperOrigin-RevId: 450463570
2022-05-24 13:16:26 -04:00
..
2021-11-29 17:35:39 +00:00
2020-06-26 14:06:52 -04:00
2021-11-29 17:35:39 +00:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2021-11-29 17:35:39 +00:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2020-06-26 14:06:52 -04:00
2021-11-29 17:35:39 +00:00
2020-06-26 14:06:52 -04:00