Leak canary: dump from nav menu

This commit is contained in:
M66B 2022-04-18 08:48:57 +02:00
parent 1551b10d0e
commit 00994d6891
2 changed files with 3 additions and 5 deletions

View File

@ -105,7 +105,7 @@ public class CoalMine {
.objectInspectors(inspectors)
.build();
LeakCanary.setConfig(config);
LeakCanary.INSTANCE.showLeakDisplayActivityLauncherIcon(false);
LeakCanary.INSTANCE.showLeakDisplayActivityLauncherIcon(true);
}
static void check() {

View File

@ -855,10 +855,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}, new Callable<Boolean>() {
@Override
public Boolean call() {
Intent canary = CoalMine.getIntent();
if (canary != null)
startActivity(canary);
return (canary != null);
CoalMine.check();
return true;
}
}).setExternal(true));