From 5ab0c53d0396669ea17eea5c18937b5300b1f437 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 10 Apr 2023 16:06:39 +0530 Subject: fix: actually apply LeakCanary config changes --- app/src/main/java/app/passwordstore/Application.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/main/java/app/passwordstore/Application.kt b/app/src/main/java/app/passwordstore/Application.kt index 5c35a8bc..6df4ef17 100644 --- a/app/src/main/java/app/passwordstore/Application.kt +++ b/app/src/main/java/app/passwordstore/Application.kt @@ -54,10 +54,10 @@ class Application : android.app.Application(), SharedPreferences.OnSharedPrefere LogcatLogger.install(AndroidLogcatLogger(DEBUG)) setVmPolicy() AppWatcher.manualInstall(this) - LeakCanary.config.copy(dumpHeap = true, eventListeners = eventListeners) + LeakCanary.config = LeakCanary.config.copy(dumpHeap = true, eventListeners = eventListeners) LeakCanary.showLeakDisplayActivityLauncherIcon(true) } else { - LeakCanary.config.copy(dumpHeap = false, eventListeners = eventListeners) + LeakCanary.config = LeakCanary.config.copy(dumpHeap = false, eventListeners = eventListeners) } prefs.registerOnSharedPreferenceChangeListener(this) setNightMode() -- cgit v1.2.3