mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 08:40:03 +02:00
Fix a crash with media
This commit is contained in:
parent
fcc323af2a
commit
36e258adb3
1 changed files with 6 additions and 2 deletions
|
@ -110,9 +110,13 @@ public class FragmentMedia extends Fragment {
|
|||
enableSliding(true);
|
||||
}
|
||||
});
|
||||
binding.mediaPicture.setOnClickListener(v -> ((MediaActivity) requireActivity()).toogleFullScreen());
|
||||
binding.mediaPicture.setOnClickListener(v -> {
|
||||
if(isAdded()){((MediaActivity) requireActivity()).toogleFullScreen();}
|
||||
});
|
||||
|
||||
binding.mediaVideo.setOnClickListener(v -> ((MediaActivity) requireActivity()).toogleFullScreen());
|
||||
binding.mediaVideo.setOnClickListener(v -> {
|
||||
if(isAdded()) {((MediaActivity) requireActivity()).toogleFullScreen();}
|
||||
});
|
||||
|
||||
String type = attachment.type;
|
||||
String preview_url = attachment.preview_url;
|
||||
|
|
Loading…
Reference in a new issue