In my Android release today, I got a warning that the app’s edge-to-edge may not work correctly. Here’s what they said:
1) Edge-to-edge may not display for all users
From Android 15, all apps targeting SDK 35 will display edge-to-edge by default. Apps targeting SDK 35 should handle insets to make sure that their app displays correctly on Android 15 and later. We recommend investigating this issue and allowing time to test edge-to-edge on your app and make the required updates to your code. Alternatively, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java for backward compatibility.
Learn more
2) Your app uses deprecated APIs or parameters for edge-to-edge
One or more of the APIs that you use or parameters that you set for edge-to-edge and window display have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:
- android.view.Window.setStatusBarColor
- androidx.core.view.WindowCompat.setDecorFitsSystemWindows
- android.view.Window.setNavigationBarColor
These start in the following places:
- com.google.android.material.bottomsheet.BottomSheetDialog.onCreate
- com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge
- com.google.android.material.sidesheet.SheetDialog.onCreate
To prepare for the change to Android 15, migrate away from these APIs or parameters.