forked from mirrors/Fedilab
Fix a crash
This commit is contained in:
parent
d7976734ce
commit
c04462e19b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue