Browse Source

Make the forkDebug build work again

issues/166-allow-fallback-location
Adam Novak 11 months ago
parent
commit
b154857979
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      app/src/forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt

+ 1
- 2
app/src/forkDebug/java/org/mozilla/fenix/DebugFenixApplication.kt View File

@ -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)
}

Loading…
Cancel
Save