mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-30 12:57:12 +01:00
Clear ImageView in onDestroyView in ViewRedditGalleryImageOrGifFragment and ViewImgurImageFragment.
This commit is contained in:
parent
7e2a8d4782
commit
3ce5664aea
@ -273,6 +273,7 @@ public class ViewImgurMediaActivity extends AppCompatActivity implements SetAsWa
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
viewPager.setAdapter(sectionsPagerAdapter);
|
viewPager.setAdapter(sectionsPagerAdapter);
|
||||||
|
viewPager.setOffscreenPageLimit(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setToolbarTitle(int position) {
|
private void setToolbarTitle(int position) {
|
||||||
|
@ -128,6 +128,7 @@ public class ViewRedditGalleryActivity extends AppCompatActivity implements SetA
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
viewPager.setAdapter(sectionsPagerAdapter);
|
viewPager.setAdapter(sectionsPagerAdapter);
|
||||||
|
viewPager.setOffscreenPageLimit(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setToolbarTitle(int position) {
|
private void setToolbarTitle(int position) {
|
||||||
|
@ -269,4 +269,10 @@ public class ViewImgurImageFragment extends Fragment {
|
|||||||
super.onAttach(context);
|
super.onAttach(context);
|
||||||
activity = (ViewImgurMediaActivity) context;
|
activity = (ViewImgurMediaActivity) context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroyView() {
|
||||||
|
super.onDestroyView();
|
||||||
|
glide.clear(imageView);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -385,8 +385,8 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroyView() {
|
||||||
super.onDestroy();
|
super.onDestroyView();
|
||||||
BigImageViewer.imageLoader().cancelAll();
|
BigImageViewer.imageLoader().cancelAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user