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) { |     LaunchedEffect(plz) { | ||||||
|  |         if (plz.length == 4) { | ||||||
|             isLoadingSet = true |             isLoadingSet = true | ||||||
|             setPLZ(index, plz, ctx) |             setPLZ(index, plz, ctx) | ||||||
|             isLoadingSet = false |             isLoadingSet = false | ||||||
|         } |         } | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     if (isLoadingSet || isLoadingGet) { |     if (isLoadingSet || isLoadingGet) { | ||||||
|         CircularProgressIndicator() |         CircularProgressIndicator() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue