|
|
@ -131,6 +131,7 @@ public class FragmentMedia extends Fragment {
|
|
|
|
binding.loader.setVisibility(View.VISIBLE);
|
|
|
|
binding.loader.setVisibility(View.VISIBLE);
|
|
|
|
scheduleStartPostponedTransition(binding.mediaPicture);
|
|
|
|
scheduleStartPostponedTransition(binding.mediaPicture);
|
|
|
|
if (Helper.isValidContextForGlide(requireActivity()) && isAdded()) {
|
|
|
|
if (Helper.isValidContextForGlide(requireActivity()) && isAdded()) {
|
|
|
|
|
|
|
|
String finalType1 = type;
|
|
|
|
Glide.with(requireActivity())
|
|
|
|
Glide.with(requireActivity())
|
|
|
|
.asDrawable()
|
|
|
|
.asDrawable()
|
|
|
|
.dontTransform()
|
|
|
|
.dontTransform()
|
|
|
@ -193,7 +194,7 @@ public class FragmentMedia extends Fragment {
|
|
|
|
binding.loader.setVisibility(View.GONE);
|
|
|
|
binding.loader.setVisibility(View.GONE);
|
|
|
|
Glide.with(requireActivity())
|
|
|
|
Glide.with(requireActivity())
|
|
|
|
.load(attachment.remote_url).into(binding.mediaPicture);
|
|
|
|
.load(attachment.remote_url).into(binding.mediaPicture);
|
|
|
|
} else {
|
|
|
|
} else if (finalType1.equalsIgnoreCase("image")) {
|
|
|
|
Toasty.error(requireActivity(), getString(R.string.toast_error_media), Toasty.LENGTH_SHORT).show();
|
|
|
|
Toasty.error(requireActivity(), getString(R.string.toast_error_media), Toasty.LENGTH_SHORT).show();
|
|
|
|
binding.loadRemote.setVisibility(View.VISIBLE);
|
|
|
|
binding.loadRemote.setVisibility(View.VISIBLE);
|
|
|
|
binding.loadRemote.setOnClickListener(v -> {
|
|
|
|
binding.loadRemote.setOnClickListener(v -> {
|
|
|
|