Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30614c4b authored by narinder Rana's avatar narinder Rana
Browse files

refine code

parent fa2349ea
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ public class ConnectivityReceiver
    }

    public static boolean isConnected()  {


        try {
            String command = "ping -c 1 ecloud.global";
            return Runtime.getRuntime().exec(command).waitFor() == 0;
@@ -51,7 +53,7 @@ public class ConnectivityReceiver
                isConnected = activeNetwork != null
                        && activeNetwork.isConnectedOrConnecting();

                Log.e(TAG, "connectivityReceiverListener...." + isConnected());
                Log.e(TAG, "connectivityReceiverListener..." + isConnected());
                if (connectivityReceiverListener != null) {
                    connectivityReceiverListener.onNetworkConnectionChanged(isConnected);
                }