fix: actually apply LeakCanary config changes
This commit is contained in:
parent
11be4cf794
commit
5ab0c53d03
1 changed files with 2 additions and 2 deletions
|
@ -54,10 +54,10 @@ class Application : android.app.Application(), SharedPreferences.OnSharedPrefere
|
||||||
LogcatLogger.install(AndroidLogcatLogger(DEBUG))
|
LogcatLogger.install(AndroidLogcatLogger(DEBUG))
|
||||||
setVmPolicy()
|
setVmPolicy()
|
||||||
AppWatcher.manualInstall(this)
|
AppWatcher.manualInstall(this)
|
||||||
LeakCanary.config.copy(dumpHeap = true, eventListeners = eventListeners)
|
LeakCanary.config = LeakCanary.config.copy(dumpHeap = true, eventListeners = eventListeners)
|
||||||
LeakCanary.showLeakDisplayActivityLauncherIcon(true)
|
LeakCanary.showLeakDisplayActivityLauncherIcon(true)
|
||||||
} else {
|
} else {
|
||||||
LeakCanary.config.copy(dumpHeap = false, eventListeners = eventListeners)
|
LeakCanary.config = LeakCanary.config.copy(dumpHeap = false, eventListeners = eventListeners)
|
||||||
}
|
}
|
||||||
prefs.registerOnSharedPreferenceChangeListener(this)
|
prefs.registerOnSharedPreferenceChangeListener(this)
|
||||||
setNightMode()
|
setNightMode()
|
||||||
|
|
Loading…
Reference in a new issue