Remove HTTP/3 badge from the server list

This commit is contained in:
2026-10-14 13:35:32 +00:00
parent 032a49f1f8
commit e039ab0d46
@@ -288,7 +288,6 @@ fun HomeScreen(modifier: Modifier = Modifier) {
ProviderRow( ProviderRow(
title = p.name, title = p.name,
subtitle = hostOf(p.url), subtitle = hostOf(p.url),
http3 = p.http3,
selected = selected == p.id, selected = selected == p.id,
onPolicy = p.policy?.let { url -> { openUrl(context, url) } }, onPolicy = p.policy?.let { url -> { openUrl(context, url) } },
) { select(p.id) } ) { select(p.id) }
@@ -297,7 +296,6 @@ fun HomeScreen(modifier: Modifier = Modifier) {
ProviderRow( ProviderRow(
title = stringResource(R.string.custom), title = stringResource(R.string.custom),
subtitle = hostOf(customUrl), subtitle = hostOf(customUrl),
http3 = customHttp3,
selected = isCustom, selected = isCustom,
) { select(Providers.CUSTOM_ID) } ) { select(Providers.CUSTOM_ID) }
} }
@@ -571,7 +569,6 @@ private fun CrashCard(report: String, onCopy: () -> Unit, onDismiss: () -> Unit)
private fun ProviderRow( private fun ProviderRow(
title: String, title: String,
subtitle: String, subtitle: String,
http3: Boolean,
selected: Boolean, selected: Boolean,
onPolicy: (() -> Unit)? = null, onPolicy: (() -> Unit)? = null,
onClick: () -> Unit, onClick: () -> Unit,
@@ -601,10 +598,6 @@ private fun ProviderRow(
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,
) )
} }
if (http3) {
Spacer(Modifier.width(8.dp))
Pill("HTTP/3", MaterialTheme.colorScheme.primary)
}
if (onPolicy != null) { if (onPolicy != null) {
IconButton(onClick = onPolicy, modifier = Modifier.size(40.dp)) { IconButton(onClick = onPolicy, modifier = Modifier.size(40.dp)) {
Icon( Icon(