Fix DebugApp doing unneeded AppWatcher.manualInstall
This commit is contained in:
parent
8cfba4003d
commit
fdd8b76add
|
@ -3,7 +3,6 @@ package org.schabi.newpipe
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import com.facebook.stetho.Stetho
|
import com.facebook.stetho.Stetho
|
||||||
import com.facebook.stetho.okhttp3.StethoInterceptor
|
import com.facebook.stetho.okhttp3.StethoInterceptor
|
||||||
import leakcanary.AppWatcher
|
|
||||||
import leakcanary.LeakCanary
|
import leakcanary.LeakCanary
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import org.schabi.newpipe.extractor.downloader.Downloader
|
import org.schabi.newpipe.extractor.downloader.Downloader
|
||||||
|
@ -13,8 +12,6 @@ class DebugApp : App() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
initStetho()
|
initStetho()
|
||||||
|
|
||||||
// Give each object 10 seconds to be GC'ed, before LeakCanary gets nosy on it
|
|
||||||
AppWatcher.manualInstall(this, retainedDelayMillis = 10000)
|
|
||||||
LeakCanary.config = LeakCanary.config.copy(
|
LeakCanary.config = LeakCanary.config.copy(
|
||||||
dumpHeap = PreferenceManager
|
dumpHeap = PreferenceManager
|
||||||
.getDefaultSharedPreferences(this).getBoolean(
|
.getDefaultSharedPreferences(this).getBoolean(
|
||||||
|
|
Loading…
Reference in New Issue