Fix potential crash on network check (DEV) (#3066)
```
java.lang.IllegalArgumentException:
at com.android.internal.util.Preconditions.checkArgument (Preconditions.java:52)
at android.net.ConnectivityManager.unregisterNetworkCallback (ConnectivityManager.java:4750)
at de.rki.coronawarnapp.util.network.NetworkStateProvider$networkState$1$2.invoke (NetworkStateProvider.kt:4)
```
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
Showing
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/network/NetworkStateProvider.kt 17 additions, 13 deletions...de/rki/coronawarnapp/util/network/NetworkStateProvider.kt
- Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/network/NetworkStateProviderTest.kt 29 additions, 0 deletions...ki/coronawarnapp/util/network/NetworkStateProviderTest.kt
Loading
Please register or sign in to comment