recycle the subsampling imageview on destroy
This commit is contained in:
parent
da80d24606
commit
d353f02a51
|
@ -324,6 +324,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
super.onDestroyView()
|
||||
if (activity?.isActivityDestroyed() == false) {
|
||||
Glide.with(context).clear(view.gif_view)
|
||||
view.subsampling_view.recycle()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue