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
public void onDestroyView() {
super.onDestroyView();
BigImageViewer.imageLoader().cancelAll();
imageView.cancel();
SubsamplingScaleImageView subsamplingScaleImageView = imageView.getSSIV();
if (subsamplingScaleImageView != null) {
subsamplingScaleImageView.recycle();