Save PLZ only when 4 chars long
This commit is contained in:
parent
a0a8b6783e
commit
4d1a182b47
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue