Merge pull request #549 from scria1000/gallery-destroy-fix

Don't cancel all ImageLoader instances
This commit is contained in:
Docile-Alligator 2021-11-27 20:21:51 +08:00 committed by GitHub
commit 806fcf397b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,7 +427,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
@Override @Override
public void onDestroyView() { public void onDestroyView() {
super.onDestroyView(); super.onDestroyView();
BigImageViewer.imageLoader().cancelAll(); imageView.cancel();
SubsamplingScaleImageView subsamplingScaleImageView = imageView.getSSIV(); SubsamplingScaleImageView subsamplingScaleImageView = imageView.getSSIV();
if (subsamplingScaleImageView != null) { if (subsamplingScaleImageView != null) {
subsamplingScaleImageView.recycle(); subsamplingScaleImageView.recycle();