mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17: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.setOffscreenPageLimit(3);
|
||||
}
|
||||
|
||||
private void setToolbarTitle(int position) {
|
||||
|
@ -128,6 +128,7 @@ public class ViewRedditGalleryActivity extends AppCompatActivity implements SetA
|
||||
}
|
||||
});
|
||||
viewPager.setAdapter(sectionsPagerAdapter);
|
||||
viewPager.setOffscreenPageLimit(3);
|
||||
}
|
||||
|
||||
private void setToolbarTitle(int position) {
|
||||
|
@ -269,4 +269,10 @@ public class ViewImgurImageFragment extends Fragment {
|
||||
super.onAttach(context);
|
||||
activity = (ViewImgurMediaActivity) context;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
glide.clear(imageView);
|
||||
}
|
||||
}
|
||||
|
@ -385,8 +385,8 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
BigImageViewer.imageLoader().cancelAll();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user