diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/NetworkChangeReceiver.java b/app/src/main/java/info/nightscout/androidaps/receivers/NetworkChangeReceiver.java index 23e826e380..3f12d75fce 100644 --- a/app/src/main/java/info/nightscout/androidaps/receivers/NetworkChangeReceiver.java +++ b/app/src/main/java/info/nightscout/androidaps/receivers/NetworkChangeReceiver.java @@ -28,11 +28,7 @@ public class NetworkChangeReceiver extends BroadcastReceiver { // TODO: Split NSClient into network state component that can be used by several plugins and logic for plugin public static void fetch() { - NetworkChangeReceiver.instance.grabNetworkStatus(MainApp.instance().getApplicationContext()); - } - - private NetworkChangeReceiver() { - super(); + new NetworkChangeReceiver().grabNetworkStatus(MainApp.instance().getApplicationContext()); } @Override @@ -90,4 +86,4 @@ public class NetworkChangeReceiver extends BroadcastReceiver { public static EventNetworkChange getLastEvent() { return lastEvent; } -} \ No newline at end of file +}