lz$1.java 1.24 KB
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.RuntimeExecutionException;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskExecutors;

final class lz$1
  implements Runnable
{
  lz$1(lz paramlz, Task paramTask) {}
  
  public final void run()
  {
    try
    {
      Task localTask = (Task)lz.a(this.b).then(this.a);
      if (localTask == null)
      {
        this.b.onFailure(new NullPointerException("Continuation returned null"));
        return;
      }
    }
    catch (RuntimeExecutionException localRuntimeExecutionException)
    {
      if ((localRuntimeExecutionException.getCause() instanceof Exception))
      {
        lz.b(this.b).a((Exception)localRuntimeExecutionException.getCause());
        return;
      }
      lz.b(this.b).a(localRuntimeExecutionException);
      return;
    }
    catch (Exception localException)
    {
      lz.b(this.b).a(localException);
      return;
    }
    localException.addOnSuccessListener(TaskExecutors.a, this.b);
    localException.addOnFailureListener(TaskExecutors.a, this.b);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/lz$1.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */