mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 00:30:03 +02:00
Fix a crash with media
This commit is contained in:
parent
2f11eaf315
commit
13946fe56e
1 changed files with 3 additions and 0 deletions
|
@ -210,6 +210,9 @@ public class FragmentMedia extends Fragment {
|
|||
|
||||
@Override
|
||||
public void onLoadFailed(@Nullable Drawable errorDrawable) {
|
||||
if (binding == null || !isAdded() || getActivity() == null) {
|
||||
return;
|
||||
}
|
||||
scheduleStartPostponedTransition(binding.mediaPicture);
|
||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(requireActivity());
|
||||
boolean autofetch = sharedpreferences.getBoolean(getString(R.string.SET_FETCH_REMOTE_MEDIA), false);
|
||||
|
|
Loading…
Reference in a new issue