stop loading the fullscreen images if the view is destroyed
This commit is contained in:
parent
9d88f7bf7d
commit
8ea1b02e0f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue