mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user