1
0
mirror of https://codeberg.org/tom79/Fedilab synced 2025-01-31 11:34:51 +01:00

Fix a crash

This commit is contained in:
Thomas 2024-01-12 11:11:57 +01:00
parent e589e2549d
commit 16686e88eb

View File

@ -395,7 +395,9 @@ public class FragmentMedia extends Fragment {
@Override
public boolean onPreDraw() {
imageView.getViewTreeObserver().removeOnPreDrawListener(this);
if (isAdded()) {
ActivityCompat.startPostponedEnterTransition(requireActivity());
}
return true;
}
});