Commit 3171aa71 authored by mengcuiguang2's avatar mengcuiguang2

解决内存泄露

parent abe1204a
...@@ -40,7 +40,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener { ...@@ -40,7 +40,7 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
// GlideUtils.loadOneTimeGif(this,R.drawable.wifi_speed,iv_left_icon,object:GlideUtils.GifListener{ // GlideUtils.loadOneTimeGif(this,R.drawable.wifi_speed,iv_left_icon,object:GlideUtils.GifListener{
// override fun gifPlayComplete() { // override fun gifPlayComplete() {
// // showToast("123")
// } // }
// }) // })
......
...@@ -58,6 +58,12 @@ class SpeedTestActivity : BaseActivity(), View.OnClickListener { ...@@ -58,6 +58,12 @@ class SpeedTestActivity : BaseActivity(), View.OnClickListener {
btn_start.setOnClickListener(this) btn_start.setOnClickListener(this)
} }
override fun onDestroy() {
super.onDestroy()
DownloadApkManager.instance.destroy()
}
override fun onClick(v: View?) { override fun onClick(v: View?) {
when (v?.id) { when (v?.id) {
R.id.iv_left_icon -> { R.id.iv_left_icon -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment