mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
fix: adjust LeakCanary init flow
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user