lz.java
2.4 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
import android.support.annotation.NonNull;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.RuntimeExecutionException;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskExecutors;
import java.util.concurrent.Executor;
final class lz<TResult, TContinuationResult>
implements OnFailureListener, OnSuccessListener<TContinuationResult>, md<TResult>
{
private final Executor a;
private final Continuation<TResult, Task<TContinuationResult>> b;
private final mf<TContinuationResult> c;
public lz(@NonNull Executor paramExecutor, @NonNull Continuation<TResult, Task<TContinuationResult>> paramContinuation, @NonNull mf<TContinuationResult> parammf)
{
this.a = paramExecutor;
this.b = paramContinuation;
this.c = parammf;
}
public final void a()
{
throw new UnsupportedOperationException();
}
public final void a(@NonNull final Task<TResult> paramTask)
{
this.a.execute(new Runnable()
{
public final void run()
{
try
{
Task localTask = (Task)lz.a(lz.this).then(paramTask);
if (localTask == null)
{
lz.this.onFailure(new NullPointerException("Continuation returned null"));
return;
}
}
catch (RuntimeExecutionException localRuntimeExecutionException)
{
if ((localRuntimeExecutionException.getCause() instanceof Exception))
{
lz.b(lz.this).a((Exception)localRuntimeExecutionException.getCause());
return;
}
lz.b(lz.this).a(localRuntimeExecutionException);
return;
}
catch (Exception localException)
{
lz.b(lz.this).a(localException);
return;
}
localException.addOnSuccessListener(TaskExecutors.a, lz.this);
localException.addOnFailureListener(TaskExecutors.a, lz.this);
}
});
}
public final void onFailure(@NonNull Exception paramException)
{
this.c.a(paramException);
}
public final void onSuccess(TContinuationResult paramTContinuationResult)
{
this.c.a(paramTContinuationResult);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/lz.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/