summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-24 10:19:02 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-24 10:19:02 +0530
commitbebb804e0191ba9f5e69374c07331b3a1bb300fb (patch)
tree4be406d3e8dade2ad666a6cb2559e3ce794e7ead /app/src
parent7e4ebc0348ab49b6ebc00352af9ea78b57f041c9 (diff)
fix: adjust LeakCanary init flow
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/app/passwordstore/Application.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/app/passwordstore/Application.kt b/app/src/main/java/app/passwordstore/Application.kt
index 984adde4..5c35a8bc 100644
--- a/app/src/main/java/app/passwordstore/Application.kt
+++ b/app/src/main/java/app/passwordstore/Application.kt
@@ -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()