Commit 20675a4f authored by narinder Rana's avatar narinder Rana
Browse files

testing handler

parent 5326fdc0
Pipeline #139096 passed with stage
in 1 minute and 15 seconds
......@@ -17,7 +17,7 @@ import foundation.e.drive.services.MyApplication;
public class ConnectivityReceiver
extends BroadcastReceiver {
private final static String TAG = ConnectivityReceiver.class.getSimpleName();
public static ConnectivityReceiverListener connectivityReceiverListener;
public boolean isConnected;
......@@ -48,9 +48,9 @@ public class ConnectivityReceiver
public void run() {
isConnected = activeNetwork != null
&& activeNetwork.isConnectedOrConnecting();
Log.e(TAG, "connectivityReceiverListener...." + isConnected);
if (connectivityReceiverListener != null) {
Log.e("TAG", "connectivityReceiverListener...." + isConnected);
connectivityReceiverListener.onNetworkConnectionChanged(isConnected);
}
......
Supports Markdown
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