From 8aac373ca3f991b0082f77cce1738aea33d68d44 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 8 Sep 2020 21:55:43 -0700 Subject: [PATCH] Fix network status detection --- .../com/topjohnwu/magisk/utils/net/LollipopNetworkObserver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/utils/net/LollipopNetworkObserver.kt b/app/src/main/java/com/topjohnwu/magisk/utils/net/LollipopNetworkObserver.kt index 76f922a2a..112ded03b 100644 --- a/app/src/main/java/com/topjohnwu/magisk/utils/net/LollipopNetworkObserver.kt +++ b/app/src/main/java/com/topjohnwu/magisk/utils/net/LollipopNetworkObserver.kt @@ -32,7 +32,7 @@ open class LollipopNetworkObserver( } override fun onLost(network: Network) { - emit(Connectivity()) + emit(Connectivity.create(manager, network)) } } }