ly.java 1.65 KB
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
 */