From 45078b10b0188f516e8c80ba5568f5e873779341 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 22 Mar 2023 17:49:53 +0100 Subject: [PATCH] FP when playing audio --- .../android/mastodon/ui/fragment/media/FragmentMedia.java | 3 ++- src/fdroid/fastlane/metadata/android/en/changelogs/488.txt | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java index 72e0e587..02f49b22 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/fragment/media/FragmentMedia.java @@ -131,6 +131,7 @@ public class FragmentMedia extends Fragment { binding.loader.setVisibility(View.VISIBLE); scheduleStartPostponedTransition(binding.mediaPicture); if (Helper.isValidContextForGlide(requireActivity()) && isAdded()) { + String finalType1 = type; Glide.with(requireActivity()) .asDrawable() .dontTransform() @@ -193,7 +194,7 @@ public class FragmentMedia extends Fragment { binding.loader.setVisibility(View.GONE); Glide.with(requireActivity()) .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(); binding.loadRemote.setVisibility(View.VISIBLE); binding.loadRemote.setOnClickListener(v -> { diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/488.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/488.txt index 57f37e6e..0313e6fa 100644 --- a/src/fdroid/fastlane/metadata/android/en/changelogs/488.txt +++ b/src/fdroid/fastlane/metadata/android/en/changelogs/488.txt @@ -8,6 +8,8 @@ Changed: Fixed: - URL in upper cases -- GIF does not honor nsfw - Issues with Peertube player +- False positive error when listening to audio +- GIF does not honor nsfw +- Polls having html - Fix crashes when scrolling timeline with animated gif \ No newline at end of file