mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-21 04:22:42 +08:00
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 https://github.com/material-components/material-components-android/issues/2628 PiperOrigin-RevId: 440110562