Fix a crash

This commit is contained in:
Thomas 2022-12-15 16:52:51 +01:00
parent d7976734ce
commit c04462e19b

View file

@ -92,7 +92,7 @@ public class FragmentMedia extends Fragment {
return;
}
canSwipe = (binding.mediaPicture.getScale() == 1);
if (!canSwipe) {
if (!canSwipe && !requireActivity().isFinishing() && isAdded()) {
if (!((MediaActivity) requireActivity()).getFullScreen()) {
((MediaActivity) requireActivity()).setFullscreen(true);
}