Trim Compose work in lists and frequent recompositions

contentType for lazy list items, a set for the own-domain lookup per
Monitor row, the group chevron animated in the draw phase, the custom
URL check remembered and the number format reused.
This commit is contained in:
2026-10-25 12:27:50 +02:00
parent f236136919
commit 04ef7adb44
4 changed files with 20 additions and 9 deletions
@@ -145,7 +145,7 @@ fun HomeScreen(modifier: Modifier = Modifier) {
var crashVisible by remember { mutableStateOf(crashReport != null) }
val isCustom = selected == Providers.CUSTOM_ID
val customValid = customUrl.trim().toHttpUrlOrNull()?.isHttps == true
val customValid = remember(customUrl) { customUrl.trim().toHttpUrlOrNull()?.isHttps == true }
val canConnect = !isCustom || customValid
val selectedProvider = remember(selected, customUrl, customBootstrap, customHttp3, servers) { prefs.resolve() }
val customName = stringResource(R.string.custom)