InstabugNetworkReceiver.java
1.37 KB
package com.instabug.library;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import com.instabug.library.util.InstabugSDKLogger;
public class InstabugNetworkReceiver
extends BroadcastReceiver
{
public void onReceive(Context paramContext, Intent paramIntent)
{
if (((ConnectivityManager)paramContext.getSystemService("connectivity")).getActiveNetworkInfo() != null)
{
InstabugSDKLogger.d(this, "Network state changed, checking local cache");
paramIntent = new ComponentName(paramContext, InstabugNetworkReceiver.class);
paramContext.getPackageManager().setComponentEnabledSetting(paramIntent, 2, 1);
paramContext.startService(new Intent(paramContext, InstabugSessionUploaderService.class));
paramContext.startService(new Intent(paramContext, InstabugIssueUploaderService.class));
paramContext.startService(new Intent(paramContext, InstabugMessageUploaderService.class));
paramContext.startService(new Intent(paramContext, InstabugFeaturesFetcherService.class));
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/InstabugNetworkReceiver.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/