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

Commit 11680887 authored by narinder Rana's avatar narinder Rana
Browse files

initialization and identity place

parent 0cb8b626
Loading
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -36,15 +36,23 @@ public class ConnectivityReceiver
    public void onReceive(Context context, Intent arg1) {
        ConnectivityManager cm = (ConnectivityManager) context
                .getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
        // NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
//        boolean isConnected = activeNetwork != null
//                && activeNetwork.isConnectedOrConnecting();

        boolean isConnected = activeNetwork != null
                && activeNetwork.isConnectedOrConnecting();
        boolean isConnected =isConnected(context);

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

            //if Scheduler flag

            //else fileObserver Flag
        }

    }

    public interface ConnectivityReceiverListener {