Android 15 will have a tweak to Configuration values that is a great long-term change, especially in combination with edge-to-edge.

Previously, the Configuration's values were smaller than the overall window size by an amount of insets.

Once an app targets API 35 in Android 15, those values will now more closely match the actual window size, and include the space that is taken up by insets.

https://developer.android.com/about/versions/15/behavior-changes-15#stable-configuration

#AndroidDev

Behavior changes: Apps targeting Android 15 or higher  |  Android Developers

Learn about changes in Android 15 that will affect apps when they target Android 15 or higher.

Android Developers
@alex_vanyo I wonder, what do people really use this value for? And with this change, what is the long term benefit that android wants to get by changing this behavior?

@gakisstylianos Because the configuration values depended on the insets, a lot of strange edge cases show up, especially around almost square windows.

It has been possible that Configuration.orientation is portrait, but Configuration.screenWidthDp > Configuration.screenHeightDp.

It's also been possible that rotating a device would always report a landscape Configuration.orientation.

This will affect qualified resource resolution, but it should be in an overall positive way.

@alex_vanyo that makes sense yeah. Thanks!