From 24e8487db6f89872298f95c4f032676e2c356ab4 Mon Sep 17 00:00:00 2001 From: davotoula Date: Wed, 18 Mar 2026 10:33:35 +0100 Subject: [PATCH] fix: hide codec toggle when video compression is set to uncompressed When the compression quality slider is set to UNCOMPRESSED (value 3), no encoding happens so the H264/H265 codec choice is irrelevant. Hide the codec toggle in this case to avoid confusion. Co-Authored-By: Claude Opus 4.6 --- .../amethyst/ui/note/creators/uploads/ImageVideoDescription.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/uploads/ImageVideoDescription.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/uploads/ImageVideoDescription.kt index 946f4a003..97cace540 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/uploads/ImageVideoDescription.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/creators/uploads/ImageVideoDescription.kt @@ -302,7 +302,7 @@ fun ImageVideoDescription( } } - if (uris.first().media.isVideo() == true) { + if (uris.first().media.isVideo() == true && mediaQualitySlider != 3) { SettingSwitchItem( title = R.string.video_codec_h265_label, description = R.string.video_codec_h265_description,