package com.google.android.m4b.maps.ao;

import android.os.Handler;
import android.os.RemoteException;
import com.google.android.m4b.maps.bl.af;
import com.google.android.m4b.maps.bu.ao;
import com.google.android.m4b.maps.model.RuntimeRemoteException;
import com.google.android.m4b.maps.r.s;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public final class i extends af
  implements ao, Runnable
{
  private final Handler a;
  private s b;
  private s c;
  private boolean d = false;
  private boolean e = false;
  private boolean f = false;
  private boolean g = false;
  private boolean h = false;

  static
  {
    Runnable.class.getSimpleName();
  }

  private i(Handler paramHandler)
  {
    Preconditions.checkNotNull(paramHandler, "Handler is null");
    this.a = paramHandler;
  }

  public static i a(w paramw, Handler paramHandler)
  {
    i locali = new i(paramHandler);
    paramw.a(locali);
    return locali;
  }

  private boolean f()
  {
    try
    {
      if ((!this.d) && (!this.e) && (!this.f) && (!this.g))
      {
        boolean bool2 = this.h;
        if (bool2)
        {
          bool1 = true;
          return bool1;
        }
      }
      boolean bool1 = false;
    }
    finally
    {
    }
  }

  public final void a()
  {
    try
    {
      this.d = true;
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final void a(s params)
  {
    try
    {
      this.b = params;
      if (f())
        run();
      return;
    }
    finally
    {
    }
  }

  protected final boolean a(boolean paramBoolean)
  {
    try
    {
      this.g = false;
      this.h = paramBoolean;
      if ((f()) && ((this.b != null) || (this.c != null)))
        this.a.post(this);
      return false;
    }
    finally
    {
    }
  }

  public final void b()
  {
    try
    {
      this.d = false;
      this.e = true;
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final void b(s params)
  {
    try
    {
      this.c = params;
      if (f())
        run();
      return;
    }
    finally
    {
    }
  }

  public final void c()
  {
    try
    {
      this.e = false;
      this.f = true;
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  protected final void d()
  {
    try
    {
      this.f = false;
      this.g = true;
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final void run()
  {
    ArrayList localArrayList = Lists.newArrayList();
    try
    {
      if (this.b != null)
      {
        localArrayList.add(this.b);
        this.b = null;
      }
      if (this.c != null)
      {
        localArrayList.add(this.c);
        this.c = null;
      }
      Iterator localIterator = localArrayList.iterator();
      while (true)
        if (localIterator.hasNext())
        {
          s locals = (s)localIterator.next();
          try
          {
            locals.a();
          }
          catch (RemoteException localRemoteException)
          {
            throw new RuntimeRemoteException(localRemoteException);
          }
        }
    }
    finally
    {
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.ao.i
 * JD-Core Version:    0.6.2
 */