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 <noreply@anthropic.com>
This commit is contained in:
davotoula
2026-03-18 10:33:35 +01:00
parent 0e62904883
commit 24e8487db6
@@ -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,