package com.google.android.m4b.maps.be;

import com.google.android.m4b.maps.al.d;
import com.google.android.m4b.maps.bg.c;
import com.google.android.m4b.maps.bg.l;
import java.io.File;
import java.util.Locale;

public final class k
{
  l a;
  c b;
  private volatile boolean c;
  private int d;
  private final boolean e;
  private Locale f;
  private final String g;
  private File h;

  public k(String paramString, l paraml, c paramc, boolean paramBoolean, Locale paramLocale, File paramFile)
  {
    this.g = paramString;
    this.a = paraml;
    this.b = paramc;
    this.d = -1;
    this.e = paramBoolean;
    this.f = paramLocale;
    this.h = paramFile;
  }

  final void a()
  {
    if ((this.b != null) && (!this.b.a(this.h)))
      this.b = null;
    if (this.b != null)
    {
      if (!this.f.equals(this.b.d()))
        this.b.a(this.f);
      this.c = true;
    }
    try
    {
      notifyAll();
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  final boolean a(int paramInt)
  {
    c localc = b();
    if ((localc != null) && (!localc.a(paramInt)))
      localc = null;
    this.d = paramInt;
    if (this.e)
    {
      if (localc != null)
        localc.a();
      if (this.a != null)
        this.a.a();
      return true;
    }
    return false;
  }

  public final c b()
  {
    if ((this.b != null) && (!this.c));
    try
    {
      while ((this.b != null) && (!this.c))
        wait();
    }
    catch (InterruptedException localInterruptedException)
    {
      Thread.currentThread().interrupt();
      return null;
      return this.b;
    }
    finally
    {
    }
  }

  protected final void c()
  {
    if (this.a != null)
      this.a.a();
    c localc = b();
    if ((localc != null) && (!localc.a()))
    {
      localc.e();
      d.a(this.g, "Unable to clear disk cache");
      this.b = null;
    }
  }

  final int d()
  {
    c localc = b();
    if (localc != null)
      return localc.c();
    return this.d;
  }
}

/* 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.be.k
 * JD-Core Version:    0.6.2
 */