Memory usage optimization

This commit is contained in:
tom5079
2020-09-10 19:16:42 +09:00
parent 297ce506b1
commit fd298529bf
6 changed files with 28 additions and 13 deletions

View File

@@ -968,4 +968,14 @@ class MainActivity :
}
}
}
override fun onLowMemory() {
super.onLowMemory()
Glide.get(this).onLowMemory()
}
override fun onTrimMemory(level: Int) {
super.onTrimMemory(level)
Glide.get(this).onTrimMemory(level)
}
}