fix: adjust LeakCanary init flow
This commit is contained in:
parent
7e4ebc0348
commit
bebb804e01
1 changed files with 1 additions and 2 deletions
|
@ -53,12 +53,11 @@ class Application : android.app.Application(), SharedPreferences.OnSharedPrefere
|
|||
) {
|
||||
LogcatLogger.install(AndroidLogcatLogger(DEBUG))
|
||||
setVmPolicy()
|
||||
AppWatcher.manualInstall(this)
|
||||
LeakCanary.config.copy(dumpHeap = true, eventListeners = eventListeners)
|
||||
LeakCanary.showLeakDisplayActivityLauncherIcon(true)
|
||||
AppWatcher.manualInstall(this)
|
||||
} else {
|
||||
LeakCanary.config.copy(dumpHeap = false, eventListeners = eventListeners)
|
||||
LeakCanary.showLeakDisplayActivityLauncherIcon(false)
|
||||
}
|
||||
prefs.registerOnSharedPreferenceChangeListener(this)
|
||||
setNightMode()
|
||||
|
|
Loading…
Reference in a new issue