package com.google.android.m4b.maps.bu;

import android.content.Context;
import android.content.res.Resources;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import com.google.android.m4b.maps.R.drawable;
import com.google.android.m4b.maps.model.BitmapDescriptor;
import com.google.android.m4b.maps.model.GroundOverlayOptions;
import com.google.android.m4b.maps.model.LatLngBounds;
import java.util.List;

public final class ax
{
  private final FrameLayout a;
  private final Resources b;
  private final Context c;
  private final bg d;
  private final bf e;
  private final f f;
  private final d g;
  private final cb h;
  private final by i;
  private aw j;
  private v k;
  private List<au> l;
  private au m;

  public ax(Context paramContext, Resources paramResources, bg parambg, bf parambf, f paramf, d paramd, cb paramcb, by paramby)
  {
    this.a = new FrameLayout(paramContext);
    this.a.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
    this.a.setTag("GoogleMapMapsEngineInfocardManagerView");
    this.c = paramContext;
    this.b = paramResources;
    this.d = parambg;
    this.e = parambf;
    this.f = paramf;
    this.g = paramd;
    this.h = paramcb;
    this.i = paramby;
  }

  private void e()
  {
    if (this.j != null)
    {
      this.a.removeView(this.j);
      this.a.invalidate();
      this.m = null;
      this.j = null;
    }
  }

  final void a()
  {
    e();
    this.j = new ay(this.c, this.b, this, this.l);
    this.j.setTag("GoogleMapMapsEngineInfolist");
    this.a.addView(this.j);
  }

  final void a(int paramInt)
  {
    int n = 1;
    e();
    this.m = ((au)this.l.get(paramInt));
    Context localContext = this.c;
    Resources localResources = this.b;
    if ((this.l != null) && (this.l.size() > n));
    while (true)
    {
      this.j = new av(localContext, localResources, this, n, this.m);
      this.j.setTag("GoogleMapMapsEngineInfocard");
      this.a.addView(this.j);
      return;
      int i1 = 0;
    }
  }

  public final void a(LatLngBounds paramLatLngBounds, List<au> paramList)
  {
    if (this.l != null)
      b();
    this.l = paramList;
    if (this.l.size() > 1);
    for (int n = R.drawable.circle_active_grouped; ; n = R.drawable.circle_active)
    {
      this.k = new v(new GroundOverlayOptions().image(new BitmapDescriptor(com.google.android.m4b.maps.j.d.a(e.b(n)))).positionFromBounds(paramLatLngBounds).zIndex(3.4028235E+38F), this.e, this.f, this.g, this.h, this.i);
      v.a locala = this.d.a(this.k);
      this.k.a(locala);
      return;
    }
  }

  public final void a(List<au> paramList)
  {
    if (this.l != paramList)
      return;
    if (paramList.size() == 1)
    {
      a(0);
      return;
    }
    a();
  }

  public final void b()
  {
    e();
    if (this.k != null)
    {
      this.k.remove();
      this.k = null;
    }
    this.l = null;
  }

  public final au c()
  {
    return this.m;
  }

  public final View d()
  {
    return this.a;
  }
}

/* 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.bu.ax
 * JD-Core Version:    0.6.2
 */