kt.java 3.69 KB
import android.content.Context;
import com.google.android.gms.internal.zzaj.zzj;
import com.google.android.gms.tagmanager.zzbn;
import com.google.android.gms.tagmanager.zzbo;
import com.google.android.gms.tagmanager.zzp.e;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

public final class kt
  implements zzp.e
{
  private final String a;
  private final Context b;
  private final ScheduledExecutorService c;
  private final kt.a d;
  private ScheduledFuture<?> e;
  private boolean f;
  private lt g;
  private String h;
  private zzbn<zzaj.zzj> i;
  
  public kt(Context paramContext, String paramString, lt paramlt)
  {
    this(paramContext, paramString, paramlt, (byte)0);
  }
  
  private kt(Context paramContext, String paramString, lt paramlt, byte paramByte)
  {
    this.g = paramlt;
    this.b = paramContext;
    this.a = paramString;
    this.c = new kt.b()
    {
      public final ScheduledExecutorService a()
      {
        return Executors.newSingleThreadScheduledExecutor();
      }
    }.a();
    this.d = new kt.a()
    {
      public final ks a(lt paramAnonymouslt)
      {
        return new ks(kt.a(kt.this), kt.b(kt.this), paramAnonymouslt);
      }
    };
  }
  
  private void a()
  {
    try
    {
      if (this.f) {
        throw new IllegalStateException("called method after closed");
      }
    }
    finally {}
  }
  
  public final void a(long paramLong, String paramString)
  {
    try
    {
      str1 = this.a;
      zzbo.v(String.valueOf(str1).length() + 55 + "loadAfterDelay: containerId=" + str1 + " delay=" + paramLong);
      a();
      if (this.i == null) {
        throw new IllegalStateException("callback must be set before loadAfterDelay() is called.");
      }
    }
    finally {}
    if (this.e != null) {
      this.e.cancel(false);
    }
    ScheduledExecutorService localScheduledExecutorService = this.c;
    ks localks = this.d.a(this.g);
    localks.b = this.i;
    String str2 = this.h;
    if (str2 == null)
    {
      localks.c = localks.a;
      str1 = String.valueOf(paramString);
      if (str1.length() == 0) {
        break label253;
      }
    }
    label253:
    for (String str1 = "Setting previous container version: ".concat(str1);; str1 = new String("Setting previous container version: "))
    {
      zzbo.zzbf(str1);
      localks.d = paramString;
      this.e = localScheduledExecutorService.schedule(localks, paramLong, TimeUnit.MILLISECONDS);
      return;
      str1 = String.valueOf(str2);
      if (str1.length() != 0) {}
      for (str1 = "Setting CTFE URL path: ".concat(str1);; str1 = new String("Setting CTFE URL path: "))
      {
        zzbo.zzbf(str1);
        localks.c = str2;
        break;
      }
    }
  }
  
  public final void a(zzbn<zzaj.zzj> paramzzbn)
  {
    try
    {
      a();
      this.i = paramzzbn;
      return;
    }
    finally
    {
      paramzzbn = finally;
      throw paramzzbn;
    }
  }
  
  public final void a(String paramString)
  {
    try
    {
      a();
      this.h = paramString;
      return;
    }
    finally
    {
      paramString = finally;
      throw paramString;
    }
  }
  
  public final void release()
  {
    try
    {
      a();
      if (this.e != null) {
        this.e.cancel(false);
      }
      this.c.shutdown();
      this.f = true;
      return;
    }
    finally {}
  }
  
  static abstract interface a
  {
    public abstract ks a(lt paramlt);
  }
  
  static abstract interface b
  {
    public abstract ScheduledExecutorService a();
  }
}


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