Don't die

This commit is contained in:
Martin Fietz 2015-11-01 16:55:42 +01:00
parent b75a390507
commit 93fc95eb7b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class PodcastApp extends Application {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder() StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder()
.detectLeakedSqlLiteObjects() .detectLeakedSqlLiteObjects()
.penaltyLog() .penaltyLog()
.penaltyDeath(); .penaltyDropBox();
if (Build.VERSION.SDK_INT >= 11) { if (Build.VERSION.SDK_INT >= 11) {
builder.detectActivityLeaks(); builder.detectActivityLeaks();
builder.detectLeakedClosableObjects(); builder.detectLeakedClosableObjects();