From b154857979177165ac27c57f395a7cb20e4c9c2f Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Sat, 3 Oct 2020 21:46:57 -0700 Subject: [PATCH] Make the forkDebug build work again --- .../forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt b/app/src/forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt index 7f5c86762..7825870b0 100644 --- a/app/src/forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt +++ b/app/src/forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt @@ -9,12 +9,11 @@ import androidx.preference.PreferenceManager import leakcanary.AppWatcher import leakcanary.LeakCanary import org.mozilla.fenix.ext.getPreferenceKey -import org.mozilla.fenix.ext.resetPoliciesAfter class DebugFenixApplication : FenixApplication() { override fun setupLeakCanary() { - val isEnabled = StrictMode.allowThreadDiskReads().resetPoliciesAfter { + val isEnabled = components.strictMode.resetAfter(StrictMode.allowThreadDiskReads()) { PreferenceManager.getDefaultSharedPreferences(this) .getBoolean(getPreferenceKey(R.string.pref_key_leakcanary), true) }