mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 08:40:03 +02:00
Fix a crash
This commit is contained in:
parent
e589e2549d
commit
16686e88eb
1 changed files with 3 additions and 1 deletions
|
@ -395,7 +395,9 @@ public class FragmentMedia extends Fragment {
|
|||
@Override
|
||||
public boolean onPreDraw() {
|
||||
imageView.getViewTreeObserver().removeOnPreDrawListener(this);
|
||||
ActivityCompat.startPostponedEnterTransition(requireActivity());
|
||||
if (isAdded()) {
|
||||
ActivityCompat.startPostponedEnterTransition(requireActivity());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue