hx.java 2.12 KB
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.MainThread;
import android.support.annotation.WorkerThread;
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.internal.zzatx;
import com.google.android.gms.internal.zzatx.zza;
import com.google.android.gms.internal.zzaty;
import com.google.android.gms.internal.zzaud;
import com.google.android.gms.internal.zzaue;

public class hx
  extends BroadcastReceiver
{
  static final String a = hx.class.getName();
  public final zzaue b;
  public boolean c;
  public boolean d;
  
  public hx(zzaue paramzzaue)
  {
    zzac.zzw(paramzzaue);
    this.b = paramzzaue;
  }
  
  @WorkerThread
  public final void a()
  {
    this.b.a();
    this.b.zzmR();
    this.b.zzmR();
    if (!this.c) {
      return;
    }
    this.b.zzKl().zzMe().log("Unregistering connectivity change receiver");
    this.c = false;
    this.d = false;
    Context localContext = this.b.getContext();
    try
    {
      localContext.unregisterReceiver(this);
      return;
    }
    catch (IllegalArgumentException localIllegalArgumentException)
    {
      this.b.zzKl().zzLY().zzj("Failed to unregister the network broadcast receiver", localIllegalArgumentException);
    }
  }
  
  @MainThread
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    this.b.a();
    paramContext = paramIntent.getAction();
    this.b.zzKl().zzMe().zzj("NetworkBroadcastReceiver received action", paramContext);
    if ("android.net.conn.CONNECTIVITY_CHANGE".equals(paramContext))
    {
      final boolean bool = this.b.zzMy().zzqa();
      if (this.d != bool)
      {
        this.d = bool;
        this.b.zzKk().zzm(new Runnable()
        {
          public final void run()
          {
            hx.a(hx.this).zzW(bool);
          }
        });
      }
      return;
    }
    this.b.zzKl().zzMa().zzj("NetworkBroadcastReceiver received unknown action", paramContext);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/hx.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */