Save PLZ only when 4 chars long

This commit is contained in:
Lorenz Hohermuth 2025-03-25 09:17:44 +01:00
parent a0a8b6783e
commit 4d1a182b47
1 changed files with 5 additions and 3 deletions

View File

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