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