leakcanary icon indicating copy to clipboard operation
leakcanary copied to clipboard

Enforce LeakActivity to fit system windows

Open 0legg opened this issue 4 months ago • 2 comments

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
Screenshot_1761242076 Screenshot_1761242099
Screenshot_1761242006 Screenshot_1761242036

0legg avatar Oct 23 '25 18:10 0legg

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 23 '25 18:10 CLAassistant

COME ON CLA BOT I WORKED AT SQUARE FOR 4 YEARS

0legg avatar Oct 23 '25 18:10 0legg

@pyricau can i haz stamp?

0legg avatar Dec 15 '25 18:12 0legg