Compare commits

...

2 Commits

Author SHA1 Message Date
Lorenz Hohermuth 4d1a182b47 Save PLZ only when 4 chars long 2025-03-25 09:17:44 +01:00
Lorenz Hohermuth a0a8b6783e Typo Grand -> Grant 2025-03-25 09:17:19 +01:00
2 changed files with 6 additions and 4 deletions

View File

@ -250,7 +250,7 @@ fun WeatherInfo(modifier: Modifier = Modifier) {
),
) {
Text(
text = "Grand Permission",
text = "Grant Permission",
fontWeight = breezeFontWeight,
)
}

View File

@ -172,9 +172,11 @@ fun ConfiguredLocationDay(dayName: String = "day", index: Int, ctx: Context) {
}
LaunchedEffect(plz) {
isLoadingSet = true
setPLZ(index, plz, ctx)
isLoadingSet = false
if (plz.length == 4) {
isLoadingSet = true
setPLZ(index, plz, ctx)
isLoadingSet = false
}
}
if (isLoadingSet || isLoadingGet) {