Skip onModeLoaded on exiting the image viewer

Otherwise when a video is playing it would call this with that the lowres is loaded, and then the video would be played again.
multisite
Floens 10 years ago
parent a5f1668021
commit cb570ea93f
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/presenter/ImageViewerPresenter.java

@ -131,6 +131,8 @@ public class ImageViewerPresenter implements MultiImageView.Callback, ViewPager.
@Override
public void onModeLoaded(MultiImageView multiImageView, MultiImageView.Mode mode) {
if (exiting) return;
if (mode == MultiImageView.Mode.LOWRES) {
// lowres is requested at the beginning of the transition,
// the lowres is loaded before the in transition or after

Loading…
Cancel
Save