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:
@@ -66,7 +66,7 @@ class NiaApplication : Application(), ImageLoaderFactory {
|
||||
private fun setStrictModePolicy() {
|
||||
if (isDebuggable()) {
|
||||
StrictMode.setThreadPolicy(
|
||||
Builder().detectAll().penaltyLog().penaltyDeath().build(),
|
||||
Builder().detectAll().penaltyLog().build(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user