mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
Remove HTTP/3 badge from the server list
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user