add leak canary

This commit is contained in:
Jason Yao 2021-12-18 14:01:32 -05:00
parent 60b61184d6
commit 1eecbd73f2
2 changed files with 4 additions and 0 deletions

View File

@ -225,4 +225,7 @@ dependencies {
//com.github.AmrDeveloper:CodeView已集成到应用内
//epubLib集成到应用内
// LeakCanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
}

View File

@ -976,6 +976,7 @@ class ReadBookActivity : BaseReadBookActivity(),
textActionMenu.dismiss()
binding.readView.onDestroy()
ReadBook.msg = null
ReadBook.callBack = null
if (!BuildConfig.DEBUG) {
Backup.autoBack(this)
}