Enable LeakCanary to test for Activity leaks.

This commit is contained in:
Ralf Kistner
2015-05-20 09:22:13 +02:00
parent e2343191ef
commit 7abfa72d11
3 changed files with 24 additions and 1 deletions
@@ -0,0 +1,16 @@
package example.zxing;
import android.app.Application;
import com.squareup.leakcanary.LeakCanary;
/**
*
*/
public class SampleApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
LeakCanary.install(this);
}
}