hx.java
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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
*/