Java Code Examples for com.squareup.leakcanary.RefWatcher#DISABLED

The following examples show how to use com.squareup.leakcanary.RefWatcher#DISABLED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ProteinApp.java    From Protein with Apache License 2.0 4 votes vote down vote up
protected RefWatcher installLeakCanary() {
    return RefWatcher.DISABLED;
}
 
Example 2
Source File: MyAppLifecycles.java    From LQRBiliBlili with MIT License 4 votes vote down vote up
private void initLeakCanary(Application application) {
    //leakCanary内存泄露检查
    mRefWatcher = BuildConfig.USE_CANARY ? LeakCanary.install(application) : RefWatcher.DISABLED;
}
 
Example 3
Source File: AppServices.java    From science-journal with Apache License 2.0 4 votes vote down vote up
@Override
public RefWatcher getRefWatcher() {
  return RefWatcher.DISABLED;
}
 
Example 4
Source File: WhistlePunkApplication.java    From science-journal with Apache License 2.0 4 votes vote down vote up
protected RefWatcher installLeakCanary() {
  return RefWatcher.DISABLED;
}
 
Example 5
Source File: AppModule.java    From photosearcher with Apache License 2.0 4 votes vote down vote up
@Provides
@Singleton
protected RefWatcher refWatcher() {
    return RefWatcher.DISABLED;
}
 
Example 6
Source File: LeakCanaryWrapper.java    From leakcanary-for-eclipse with MIT License 4 votes vote down vote up
public static RefWatcher install(Application application) {
    return RefWatcher.DISABLED;
}
 
Example 7
Source File: AppModule.java    From Qiitanium with MIT License 4 votes vote down vote up
@Singleton
@Provides
public RefWatcher provideRefWatcher() {
  return RefWatcher.DISABLED;
}