diff options
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/MapboxApplication.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/MapboxApplication.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/MapboxApplication.java index 6f0f0f3c78..4b1305daed 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/MapboxApplication.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/MapboxApplication.java @@ -11,17 +11,17 @@ public class MapboxApplication extends Application { public void onCreate() { super.onCreate(); LeakCanary.install(this); -// StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() -// .detectDiskReads() -// .detectDiskWrites() -// .detectNetwork() // or .detectAll() for all detectable problems -// .penaltyLog() -// .build()); -// StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() -// .detectLeakedSqlLiteObjects() -// .detectLeakedClosableObjects() -// .penaltyLog() -// .penaltyDeath() -// .build()); + StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() + .detectDiskReads() + .detectDiskWrites() + .detectNetwork() // or .detectAll() for all detectable problems + .penaltyLog() + .build()); + StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() + .detectLeakedSqlLiteObjects() + .detectLeakedClosableObjects() + .penaltyLog() + .penaltyDeath() + .build()); } } |