Enforce LeakActivity to fit system windows
To ship new updates on Google Play Store, developers should target Android 15 (SDK 35). Most important behavior change at this version is the egde-to-edge enforcement.
For LeakCanary it surfaces as content being cut from top and bottom of the screen, making the topmost leak non-accessible, so you have to add more leaks to debug your leaks.
This change adds an MVP support for manual edge-to-edge configuration. The proper support will require adding a bunch of libraries, and updating a lot of dependencies which is contrary to LeakCanary lean dependency approach.
Tested using sample app (recompiled locally with compileSdk/targetSdk set to 35).
| Before | After |
|---|---|
COME ON CLA BOT I WORKED AT SQUARE FOR 4 YEARS
@pyricau can i haz stamp?