mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
stop loading the fullscreen images if the view is destroyed
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user