Commit 7e6b5df4 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

This should fix last issues with network manager

parent d36e6240
......@@ -564,7 +564,7 @@ public class AndroidPlatformHelper {
Log.i("[Platform Helper] Registering interactivity receiver");
mContext.registerReceiver(mInteractivityReceiver, mInteractivityIntentFilter);
postNetworkUpdateRunner();
updateNetworkReachability();
}
private synchronized void stopNetworkMonitoring() {
......
......@@ -59,6 +59,7 @@ public class NetworkManagerAbove24 implements NetworkManagerInterface {
@Override
public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) {
Log.i("[Platform Helper] [Network Manager 24] onCapabilitiesChanged " + network.toString() + ", " + networkCapabilities.toString());
mHelper.postNetworkUpdateRunner();
}
@Override
......
......@@ -59,6 +59,7 @@ public class NetworkManagerAbove26 implements NetworkManagerInterface {
@Override
public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) {
Log.i("[Platform Helper] [Network Manager 26] onCapabilitiesChanged " + network.toString() + ", " + networkCapabilities.toString());
mHelper.updateNetworkReachability();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment