GoogleApiActivity.java
4.02 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
package com.google.android.gms.common.api;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.content.IntentSender.SendIntentException;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.internal.zzaax;
public class GoogleApiActivity
extends Activity
implements DialogInterface.OnCancelListener
{
protected int zzazb = 0;
public static PendingIntent zza(Context paramContext, PendingIntent paramPendingIntent, int paramInt)
{
return zza(paramContext, paramPendingIntent, paramInt, true);
}
public static PendingIntent zza(Context paramContext, PendingIntent paramPendingIntent, int paramInt, boolean paramBoolean)
{
return PendingIntent.getActivity(paramContext, 0, zzb(paramContext, paramPendingIntent, paramInt, paramBoolean), 134217728);
}
public static Intent zzb(Context paramContext, PendingIntent paramPendingIntent, int paramInt, boolean paramBoolean)
{
paramContext = new Intent(paramContext, GoogleApiActivity.class);
paramContext.putExtra("pending_intent", paramPendingIntent);
paramContext.putExtra("failing_client_id", paramInt);
paramContext.putExtra("notify_manager", paramBoolean);
return paramContext;
}
protected void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent)
{
super.onActivityResult(paramInt1, paramInt2, paramIntent);
if (paramInt1 == 1)
{
boolean bool = getIntent().getBooleanExtra("notify_manager", true);
this.zzazb = 0;
setResultCode(paramInt2);
if (bool)
{
paramIntent = zzaax.zzaP(this);
switch (paramInt2)
{
}
}
}
for (;;)
{
finish();
return;
paramIntent.zza(new ConnectionResult(13, null), getIntent().getIntExtra("failing_client_id", -1));
continue;
paramIntent.zzvx();
continue;
if (paramInt1 == 2)
{
this.zzazb = 0;
setResultCode(paramInt2);
}
}
}
public void onCancel(DialogInterface paramDialogInterface)
{
this.zzazb = 0;
setResult(0);
finish();
}
protected void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
if (paramBundle != null) {
this.zzazb = paramBundle.getInt("resolution");
}
if (this.zzazb != 1)
{
localObject = getIntent().getExtras();
if (localObject == null)
{
Log.e("GoogleApiActivity", "Activity started without extras");
finish();
}
}
else
{
return;
}
paramBundle = (PendingIntent)((Bundle)localObject).get("pending_intent");
Object localObject = (Integer)((Bundle)localObject).get("error_code");
if ((paramBundle == null) && (localObject == null))
{
Log.e("GoogleApiActivity", "Activity started without resolution");
finish();
return;
}
if (paramBundle != null) {
try
{
startIntentSenderForResult(paramBundle.getIntentSender(), 1, null, 0, 0, 0);
this.zzazb = 1;
return;
}
catch (IntentSender.SendIntentException paramBundle)
{
Log.e("GoogleApiActivity", "Failed to launch pendingIntent", paramBundle);
finish();
return;
}
}
GoogleApiAvailability.getInstance().showErrorDialogFragment(this, ((Integer)localObject).intValue(), 2, this);
this.zzazb = 1;
}
protected void onSaveInstanceState(Bundle paramBundle)
{
paramBundle.putInt("resolution", this.zzazb);
super.onSaveInstanceState(paramBundle);
}
protected void setResultCode(int paramInt)
{
setResult(paramInt);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/common/api/GoogleApiActivity.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/