kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Fix DebugApp doing unneeded AppWatcher.manualInstall
rodzic
8cfba4003d
commit
fdd8b76add
|
@ -3,7 +3,6 @@ package org.schabi.newpipe
|
|||
import androidx.preference.PreferenceManager
|
||||
import com.facebook.stetho.Stetho
|
||||
import com.facebook.stetho.okhttp3.StethoInterceptor
|
||||
import leakcanary.AppWatcher
|
||||
import leakcanary.LeakCanary
|
||||
import okhttp3.OkHttpClient
|
||||
import org.schabi.newpipe.extractor.downloader.Downloader
|
||||
|
@ -13,8 +12,6 @@ class DebugApp : App() {
|
|||
super.onCreate()
|
||||
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(
|
||||
dumpHeap = PreferenceManager
|
||||
.getDefaultSharedPreferences(this).getBoolean(
|
||||
|
|
Ładowanie…
Reference in New Issue