Optimize network status display

This commit is contained in:
vvb2060
2020-08-31 03:56:36 +08:00
committed by GitHub
parent 0333e82e86
commit 70174e093b
6 changed files with 16 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ open class LollipopNetworkObserver(
}
override fun onLost(network: Network) {
emit(Connectivity.create(manager, network))
emit(Connectivity())
}
}
}