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