Skip to content

Commit 425ddf6

Browse files
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
1 parent 25d80b4 commit 425ddf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/google/samples/apps/nowinandroid/NiaApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class NiaApplication : Application(), ImageLoaderFactory {
6666
private fun setStrictModePolicy() {
6767
if (isDebuggable()) {
6868
StrictMode.setThreadPolicy(
69-
Builder().detectAll().penaltyLog().penaltyDeath().build(),
69+
Builder().detectAll().penaltyLog().build(),
7070
)
7171
}
7272
}

0 commit comments

Comments
 (0)