zzaae.java
5.09 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
package com.google.android.gms.internal;
import android.app.Activity;
import android.app.Dialog;
import android.app.PendingIntent;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.MainThread;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.api.GoogleApiActivity;
public abstract class zzaae
extends zzabe
implements DialogInterface.OnCancelListener
{
private ConnectionResult a;
private int b = -1;
private final Handler c = new Handler(Looper.getMainLooper());
protected boolean mStarted;
protected boolean zzazZ;
protected final GoogleApiAvailability zzazn;
protected zzaae(zzabf paramzzabf)
{
this(paramzzabf, GoogleApiAvailability.getInstance());
}
private zzaae(zzabf paramzzabf, GoogleApiAvailability paramGoogleApiAvailability)
{
super(paramzzabf);
this.zzazn = paramGoogleApiAvailability;
}
public void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent)
{
int i = 1;
int j = 1;
switch (paramInt1)
{
default:
paramInt1 = 0;
if (paramInt1 != 0)
{
zzvD();
return;
}
break;
case 2:
label30:
j = this.zzazn.isGooglePlayServicesAvailable(getActivity());
if (j != 0) {}
break;
}
for (paramInt2 = i;; paramInt2 = 0)
{
paramInt1 = paramInt2;
if (this.a.getErrorCode() != 18) {
break label30;
}
paramInt1 = paramInt2;
if (j != 18) {
break label30;
}
return;
paramInt1 = j;
if (paramInt2 == -1) {
break label30;
}
if (paramInt2 != 0) {
break;
}
if (paramIntent != null) {}
for (paramInt1 = paramIntent.getIntExtra("<<ResolutionFailureErrorDetail>>", 13);; paramInt1 = 13)
{
this.a = new ConnectionResult(paramInt1, null);
break;
zza(this.a, this.b);
return;
}
}
}
public void onCancel(DialogInterface paramDialogInterface)
{
zza(new ConnectionResult(13, null), this.b);
zzvD();
}
public void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
if (paramBundle != null)
{
this.zzazZ = paramBundle.getBoolean("resolving_error", false);
if (this.zzazZ)
{
this.b = paramBundle.getInt("failed_client_id", -1);
this.a = new ConnectionResult(paramBundle.getInt("failed_status"), (PendingIntent)paramBundle.getParcelable("failed_resolution"));
}
}
}
public void onSaveInstanceState(Bundle paramBundle)
{
super.onSaveInstanceState(paramBundle);
paramBundle.putBoolean("resolving_error", this.zzazZ);
if (this.zzazZ)
{
paramBundle.putInt("failed_client_id", this.b);
paramBundle.putInt("failed_status", this.a.getErrorCode());
paramBundle.putParcelable("failed_resolution", this.a.getResolution());
}
}
public void onStart()
{
super.onStart();
this.mStarted = true;
}
public void onStop()
{
super.onStop();
this.mStarted = false;
}
protected abstract void zza(ConnectionResult paramConnectionResult, int paramInt);
public void zzb(ConnectionResult paramConnectionResult, int paramInt)
{
if (!this.zzazZ)
{
this.zzazZ = true;
this.b = paramInt;
this.a = paramConnectionResult;
this.c.post(new a((byte)0));
}
}
protected void zzvD()
{
this.b = -1;
this.zzazZ = false;
this.a = null;
zzvx();
}
protected abstract void zzvx();
final class a
implements Runnable
{
private a() {}
@MainThread
public final void run()
{
if (!zzaae.this.mStarted) {
return;
}
if (zzaae.a(zzaae.this).hasResolution())
{
zzaae.this.zzaCR.startActivityForResult(GoogleApiActivity.zzb(zzaae.this.getActivity(), zzaae.a(zzaae.this).getResolution(), zzaae.b(zzaae.this), false), 1);
return;
}
if (zzaae.this.zzazn.isUserResolvableError(zzaae.a(zzaae.this).getErrorCode()))
{
zzaae.this.zzazn.zza(zzaae.this.getActivity(), zzaae.this.zzaCR, zzaae.a(zzaae.this).getErrorCode(), 2, zzaae.this);
return;
}
if (zzaae.a(zzaae.this).getErrorCode() == 18)
{
final Dialog localDialog = zzaae.this.zzazn.zza(zzaae.this.getActivity(), zzaae.this);
zzaae.this.zzazn.zza(zzaae.this.getActivity().getApplicationContext(), new zzaaz.zza()
{
public final void zzvE()
{
zzaae.this.zzvD();
if (localDialog.isShowing()) {
localDialog.dismiss();
}
}
});
return;
}
zzaae.this.zza(zzaae.a(zzaae.this), zzaae.b(zzaae.this));
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzaae.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/