RuleIn force
Edge to edge is required
Apps targeting Android 16 (API 36) can no longer opt out of edge to edge, so content draws behind the status and navigation bars on Android 16 devices.
Opt out stops working at API 36
What the rule is
Targeting API 35 makes apps edge to edge on Android 15 devices, but windowOptOutEdgeToEdgeEnforcement=true still opted out.
Targeting API 36 removes that opt out on Android 16 devices. Since Google Play now requires API 36 for updates, any app that relies on the opt out loses it on its next update.
Who it affects
Apps that set windowOptOutEdgeToEdgeEnforcement in a theme, or that never handled window insets, once they target API 36.
How to fix it
- Remove windowOptOutEdgeToEdgeEnforcement from your themes.
- Call enableEdgeToEdge() in your activities and handle WindowInsets so toolbars, buttons and lists aren't hidden under the system bars.
- Stop relying on statusBarColor and navigationBarColor, which no longer color the bars.
- Test on an Android 16 device or emulator with gesture and three button navigation.
Check your app
Run this in your Android project. It checks this rule on your machine, and nothing about your project is uploaded.
npx play-preflight check --only edge-to-edge