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