The insets assumed a portrait only orientation of the device. Now it will work in any orientation and with the status/navgiation bars anywhere on the screen (left, right, top, bottom)
This also changes to using WindowInsetsCompat since that handles the deprecation cases automatically.
The insets assumed a portrait only orientation of the device. Now it will work in any orientation and with the status/navgiation bars anywhere on the screen (left, right, top, bottom)
This also changes to using WindowInsetsCompat since that handles the deprecation cases automatically.