Remove death penalty from strict mode violations (#1857)

The app was still crashing in non-debug after strict mode was enabled. Less restrictive, now only logging violations

Closes #1853
Closes #1809
pull/2063/head
Ben Weiss 11 months ago committed by GitHub
parent bf7f134be2
commit b62bd5ab34

@ -66,7 +66,7 @@ class NiaApplication : Application(), ImageLoaderFactory {
private fun setStrictModePolicy() {
if (isDebuggable()) {
StrictMode.setThreadPolicy(
Builder().detectAll().penaltyLog().penaltyDeath().build(),
Builder().detectAll().penaltyLog().build(),
)
}
}

Loading…
Cancel
Save