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
This commit is contained in:
Ben Weiss
2025-04-01 10:29:14 +02:00
committed by GitHub
parent 25d80b4598
commit 425ddf6a69

View File

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