Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Correct status bar height on multiwindow #2278
This PR solves the problem of the status bar height not adjusting when going from multiwindow to fullscreen or vice versa.
The solution consists of querying the status bar height on onResume since it's the callback we get when entering/leaving multiwindow, and we cannot remove the WindowInsets listener due to the fact that when resizing the window (such as, for example, when resizing to go fullscreen) we don't get any lifecycle callback (such as onStart or onResume), instead the listener gets triggered.
detekt is complaining about a wildcard import: