mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +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
|
@Override
|
||||||
public boolean onPreDraw() {
|
public boolean onPreDraw() {
|
||||||
imageView.getViewTreeObserver().removeOnPreDrawListener(this);
|
imageView.getViewTreeObserver().removeOnPreDrawListener(this);
|
||||||
|
if (isAdded()) {
|
||||||
ActivityCompat.startPostponedEnterTransition(requireActivity());
|
ActivityCompat.startPostponedEnterTransition(requireActivity());
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue