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) .objectInspectors(inspectors)
.build(); .build();
LeakCanary.setConfig(config); LeakCanary.setConfig(config);
LeakCanary.INSTANCE.showLeakDisplayActivityLauncherIcon(false); LeakCanary.INSTANCE.showLeakDisplayActivityLauncherIcon(true);
} }
static void check() { static void check() {

View File

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