mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-15 16:16:02 +01:00
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
Block a user