stop loading the fullscreen images if the view is destroyed

This commit is contained in:
tibbi 2017-03-16 19:13:02 +01:00
parent 9d88f7bf7d
commit 8ea1b02e0f
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ class PhotoFragment : ViewPagerFragment() {
loadBitmap(degrees)
}
override fun onDestroyView() {
super.onDestroyView()
Glide.clear(view)
}
override fun onConfigurationChanged(newConfig: Configuration?) {
super.onConfigurationChanged(newConfig)
loadImage()