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
radle/init.gradle.kts
Ben Weiss 5 months ago committed by GitHub
parent 25d80b4598
commit 425ddf6a69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save