Don't die
This commit is contained in:
parent
b75a390507
commit
93fc95eb7b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue