aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-04-10 16:06:39 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-04-10 16:20:59 +0530
commit5ab0c53d0396669ea17eea5c18937b5300b1f437 (patch)
treedeec6af489545b724ba68cf1c5a1725c92f612fa /app/src/main
parent11be4cf794ba29049079c81b4fe68ff2d4ff963c (diff)
fix: actually apply LeakCanary config changes
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/app/passwordstore/Application.kt4
1 files changed, 2 insertions, 2 deletions
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()