Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DatePicker] Fix edge-to-edge mode being applied multiple times
When the date picker goes back from background to foreground, the onStart() method will be called and make enableEdgeToEdge() be called again. This will make it incorrectly use the header height and top padding already adjusted with system inset as the original height and padding, and thus add the inset multiple times. Creates a flag to only enable edge-to-edge once to fix the issue. Resolves #2628 PiperOrigin-RevId: 440110562 (cherry picked from commit c6a654c)
- Loading branch information