zza.java
6.35 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
package com.google.android.gms.dynamic;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.internal.zzh;
import java.util.Iterator;
import java.util.LinkedList;
public abstract class zza<T extends LifecycleDelegate>
{
private T a;
private Bundle b;
private LinkedList<a> c;
private final zze<T> d = new zze()
{
public final void zza(T paramAnonymousT)
{
zza.a(zza.this, paramAnonymousT);
paramAnonymousT = zza.a(zza.this).iterator();
while (paramAnonymousT.hasNext()) {
((zza.a)paramAnonymousT.next()).b();
}
zza.a(zza.this).clear();
zza.c(zza.this);
}
};
private void a(int paramInt)
{
while ((!this.c.isEmpty()) && (((a)this.c.getLast()).a() >= paramInt)) {
this.c.removeLast();
}
}
private void a(Bundle paramBundle, a parama)
{
if (this.a != null)
{
parama.b();
return;
}
if (this.c == null) {
this.c = new LinkedList();
}
this.c.add(parama);
if (paramBundle != null)
{
if (this.b != null) {
break label72;
}
this.b = ((Bundle)paramBundle.clone());
}
for (;;)
{
zza(this.d);
return;
label72:
this.b.putAll(paramBundle);
}
}
public static void zzb(final FrameLayout paramFrameLayout)
{
Object localObject = GoogleApiAvailability.getInstance();
Context localContext = paramFrameLayout.getContext();
int i = ((GoogleApiAvailability)localObject).isGooglePlayServicesAvailable(localContext);
String str2 = zzh.zzi(localContext, i);
String str1 = zzh.zzk(localContext, i);
LinearLayout localLinearLayout = new LinearLayout(paramFrameLayout.getContext());
localLinearLayout.setOrientation(1);
localLinearLayout.setLayoutParams(new FrameLayout.LayoutParams(-2, -2));
paramFrameLayout.addView(localLinearLayout);
paramFrameLayout = new TextView(paramFrameLayout.getContext());
paramFrameLayout.setLayoutParams(new FrameLayout.LayoutParams(-2, -2));
paramFrameLayout.setText(str2);
localLinearLayout.addView(paramFrameLayout);
paramFrameLayout = ((GoogleApiAvailability)localObject).zzb(localContext, i, null);
if (paramFrameLayout != null)
{
localObject = new Button(localContext);
((Button)localObject).setId(16908313);
((Button)localObject).setLayoutParams(new FrameLayout.LayoutParams(-2, -2));
((Button)localObject).setText(str1);
localLinearLayout.addView((View)localObject);
((Button)localObject).setOnClickListener(new View.OnClickListener()
{
public final void onClick(View paramAnonymousView)
{
try
{
zza.this.startActivity(paramFrameLayout);
return;
}
catch (ActivityNotFoundException paramAnonymousView)
{
Log.e("DeferredLifecycleHelper", "Failed to start resolution intent", paramAnonymousView);
}
}
});
}
}
public void onCreate(final Bundle paramBundle)
{
a(paramBundle, new a()
{
public final int a()
{
return 1;
}
public final void b()
{
zza.b(zza.this).onCreate(paramBundle);
}
});
}
public View onCreateView(final LayoutInflater paramLayoutInflater, final ViewGroup paramViewGroup, final Bundle paramBundle)
{
final FrameLayout localFrameLayout = new FrameLayout(paramLayoutInflater.getContext());
a(paramBundle, new a()
{
public final int a()
{
return 2;
}
public final void b()
{
localFrameLayout.removeAllViews();
localFrameLayout.addView(zza.b(zza.this).onCreateView(paramLayoutInflater, paramViewGroup, paramBundle));
}
});
if (this.a == null) {
zza(localFrameLayout);
}
return localFrameLayout;
}
public void onDestroy()
{
if (this.a != null)
{
this.a.onDestroy();
return;
}
a(1);
}
public void onDestroyView()
{
if (this.a != null)
{
this.a.onDestroyView();
return;
}
a(2);
}
public void onInflate(final Activity paramActivity, final Bundle paramBundle1, final Bundle paramBundle2)
{
a(paramBundle2, new a()
{
public final int a()
{
return 0;
}
public final void b()
{
zza.b(zza.this).onInflate(paramActivity, paramBundle1, paramBundle2);
}
});
}
public void onLowMemory()
{
if (this.a != null) {
this.a.onLowMemory();
}
}
public void onPause()
{
if (this.a != null)
{
this.a.onPause();
return;
}
a(5);
}
public void onResume()
{
a(null, new a()
{
public final int a()
{
return 5;
}
public final void b()
{
zza.b(zza.this).onResume();
}
});
}
public void onSaveInstanceState(Bundle paramBundle)
{
if (this.a != null) {
this.a.onSaveInstanceState(paramBundle);
}
while (this.b == null) {
return;
}
paramBundle.putAll(this.b);
}
public void onStart()
{
a(null, new a()
{
public final int a()
{
return 4;
}
public final void b()
{
zza.b(zza.this).onStart();
}
});
}
public void onStop()
{
if (this.a != null)
{
this.a.onStop();
return;
}
a(4);
}
public T zzBN()
{
return this.a;
}
protected void zza(FrameLayout paramFrameLayout)
{
zzb(paramFrameLayout);
}
protected abstract void zza(zze<T> paramzze);
static abstract interface a
{
public abstract int a();
public abstract void b();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/dynamic/zza.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/